]> granicus.if.org Git - postgresql/commit
pg_rewind: Fix busted sanity check.
authorRobert Haas <rhaas@postgresql.org>
Fri, 21 Jul 2017 16:48:22 +0000 (12:48 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 21 Jul 2017 17:04:04 +0000 (13:04 -0400)
commit0fe21602e27fab20845e2345691b5522edd53c02
tree21d742055ab81949ebb08b4b52bb69f2bb40f4be
parentd86a2b7b58bc9e5455a77f37690bf4588f4d2836
pg_rewind: Fix busted sanity check.

As written, the code would only fail the sanity check if none of the
columns returned by the server were of the expected type, but we want
it to fail if even one column is not of the expected type.

Discussion: http://postgr.es/m/CA+TgmoYuY5zW7JEs+1hSS1D=V5K8h1SQuESrq=bMNeo0B71Sfw@mail.gmail.com
src/bin/pg_rewind/libpq_fetch.c