Content-Length: 259059 | pFad | http://github.com/postgrespro/postgres/commit/d33674708948e10806480ee628b072a2ef8ecba1

AB pgbench: Correct log level of message output when socket wait method … · postgrespro/postgres@d336747 · GitHub
Skip to content

Commit d336747

Browse files
committed
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
1 parent 070d2e1 commit d336747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6784,7 +6784,7 @@ threadRun(void *arg)
67846784
continue;
67856785
}
67866786
/* must be something wrong */
6787-
pg_log_fatal("%s() failed: %m", SOCKET_WAIT_METHOD);
6787+
pg_log_error("%s() failed: %m", SOCKET_WAIT_METHOD);
67886788
goto done;
67896789
}
67906790
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d33674708948e10806480ee628b072a2ef8ecba1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy