pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make pg_dump error cleanly with -j against hot standby
2+ messages / 1 participants
[nested] [flat]

* pgsql: Make pg_dump error cleanly with -j against hot standby
@ 2016-05-26 20:22 Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Magnus Hagander @ 2016-05-26 20:22 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d74048defcb1f48c5cc5a1b2a8aa0f7da8663394

Modified Files
--------------
src/bin/pg_dump/pg_backup.h    |  1 +
src/bin/pg_dump/pg_backup_db.c | 38 ++++++++++++++++++++++++++++++
src/bin/pg_dump/pg_backup_db.h |  1 +
src/bin/pg_dump/pg_dump.c      | 53 +++++++++++-------------------------------
4 files changed, 53 insertions(+), 40 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Make pg_dump error cleanly with -j against hot standby
@ 2016-05-26 20:22 Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Magnus Hagander @ 2016-05-26 20:22 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/47e59697679a0877e0525c565b1be437487604a7

Modified Files
--------------
src/bin/pg_dump/pg_backup.h    |  1 +
src/bin/pg_dump/pg_backup_db.c | 38 ++++++++++++++++++++++++++++++
src/bin/pg_dump/pg_backup_db.h |  1 +
src/bin/pg_dump/pg_dump.c      | 53 +++++++++++-------------------------------
4 files changed, 53 insertions(+), 40 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-05-26 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 20:22 pgsql: Make pg_dump error cleanly with -j against hot standby Magnus Hagander <magnus@hagander.net>
2016-05-26 20:22 pgsql: Make pg_dump error cleanly with -j against hot standby Magnus Hagander <magnus@hagander.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox