aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-09-29 20:35:00 +0900
committerFujii Masao <fujii@postgresql.org>2021-09-29 21:47:25 +0900
commit8021334d3710cb030ed1b6de764a0bb2233e5265 (patch)
tree434e5c41fadda97b4240d51491535fb56651c9aa
parent2cf9cf5d7b5e66202389618a4c08945da352b35c (diff)
downloadpostgresql-8021334d3710cb030ed1b6de764a0bb2233e5265.tar.gz
postgresql-8021334d3710cb030ed1b6de764a0bb2233e5265.zip
pgbench: Correct log level of message output when socket wait method fails.
The failure of socket wait method like "select()" doesn't terminate pgbench. So the log level of error message when that failure happens should be ERROR. But previously FATAL was used in that case. Back-patch to v13 where pgbench started using common logging API. Author: Yugo Nagata, Fabien COELHO Reviewed-by: Kyotaro Horiguchi, Fujii Masao Discussion: https://postgr.es/m/20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp
-rw-r--r--src/bin/pgbench/pgbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 72414ff0d11..734752e6509 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -6794,7 +6794,7 @@ threadRun(void *arg)
continue;
}
/* must be something wrong */
- pg_log_fatal("%s() failed: %m", SOCKET_WAIT_METHOD);
+ pg_log_error("%s() failed: %m", SOCKET_WAIT_METHOD);
goto done;
}
}