]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pgbench: Fix handling of socket errors during benchmark.
authorFujii Masao <fujii@postgresql.org>
Wed, 29 Sep 2021 12:01:10 +0000 (21:01 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 29 Sep 2021 12:49:29 +0000 (21:49 +0900)
commit8231c500ed742431263052cd48fbb859d7f7d7ea
treef5b2f1db596373bcdc179245f84b1d1231820d2f
parent8021334d3710cb030ed1b6de764a0bb2233e5265
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
src/bin/pgbench/pgbench.c