Make pg_dump error cleanly with -j against hot standby
authorMagnus Hagander <magnus@hagander.net>
Thu, 26 May 2016 20:14:23 +0000 (22:14 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 26 May 2016 20:18:04 +0000 (22:18 +0200)
commit47e59697679a0877e0525c565b1be437487604a7
tree11850305e873ab9747d1e23cb4cdb72d95c076d8
parentaa86edb38da6f822a53553c94d11f95ed4549d76
Make pg_dump error cleanly with -j against hot standby

Getting a synchronized snapshot is not supported on a hot standby node,
and is by default taken when using -j with multiple sessions. Trying to
do so still failed, but with a server error that would also go in the
log. Instead, proprely detect this case and give a better error message.
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.h
src/bin/pg_dump/pg_dump.c