pgsql: pgbench: Fix handling of socket errors during benchmark. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: pgbench: Fix handling of socket errors during benchmark.
Date
Msg-id E1mVZ2Z-00062i-4w@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8231c500ed742431263052cd48fbb859d7f7d7ea

Modified Files
--------------
src/bin/pgbench/pgbench.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: pgbench: Fix handling of socket errors during benchmark.
Next
From: Fujii Masao
Date:
Subject: pgsql: pgbench: Fix handling of socket errors during benchmark.