pgbench: If we fail to send a command to the server, fail.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 Sep 2017 17:51:14 +0000 (13:51 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Sep 2017 17:55:38 +0000 (13:55 -0400)
commite55d9643ecb87f41185941b54d632641b3852aaa
tree8233d294186dc48e38eb7e7ce557a29bdf88a72a
parent2a14b9609df1de4f2eb5a97aff674aaad033a7e6
pgbench: If we fail to send a command to the server, fail.

This beats the old behavior of busy-waiting hands down.

Oversight in commit 12788ae49e1933f463bc59a6efe46c4a01701b76.

Report by Pavan Deolasee. Patch by Fabien Coelho.  Reviewed by
Pavan Deolasee.

Discussion: http://postgr.es/m/CABOikdPhfXTypckMC1Ux6Ko+hKBWwUBA=EXsvamXYSg8M9J94w@mail.gmail.com
src/bin/pgbench/pgbench.c