postgresql/src/bin/pgbench
Fujii Masao c5f7e702d7 pgbench: Fix handling of socket errors during benchmark.
Previously socket errors such as invalid socket or socket wait method failures
during benchmark caused pgbench to exit with status 0. Instead, errors during
the run should result in exit status 2.

Back-patch to v12 where pgbench started reporting exit status.

Original complaint and patch by Hayato Kuroda.

Author: Yugo Nagata, Fabien COELHO
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com
2021-09-29 21:49:40 +09:00
..
t Remove some useless logs from the TAP tests of pgbench 2021-06-26 12:40:07 +09:00
.gitignore Call xlc __isync() after, not before, associated compare-and-swap. 2016-02-19 22:47:50 -05:00
exprparse.y Update copyright for 2019 2019-01-02 12:44:25 -05:00
exprscan.l Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
pgbench.c pgbench: Fix handling of socket errors during benchmark. 2021-09-29 21:49:40 +09:00
pgbench.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00