pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make pg_dump error cleanly with -j against hot standby
Date: Thu, 26 May 2016 20:22:45 +0000
Message-ID: <E1b61np-0007gR-Ef@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


view thread (2+ messages)  latest in thread

Message-ID: <E1b61np-0007gR-Ef@gemulon.postgresql.org>
Permalink:  ../E1b61np-0007gR-Ef@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1b61np-0007gR-Ef@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Make pg_dump error cleanly with -j against hot standby
  In-Reply-To: <E1b61np-0007gR-Ef@gemulon.postgresql.org>
  References: <E1b61np-0007gR-Ef@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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