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:14:23 +0000 (22:14 +0200)
commitd74048defcb1f48c5cc5a1b2a8aa0f7da8663394
tree4a16a439000381ed99e78e17151fd66081e5e3c1
parentaeb9ae6457865c8949641d71a9523374d843a418
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