From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Consolidate cross-option checks in pg_restore
Date: Tue, 30 Oct 2018 02:39:19 +0000
Message-ID: <E1gHJw7-0007Ul-VX@gemulon.postgresql.org> (raw)
Consolidate cross-option checks in pg_restore
This moves one check for conflicting options from the archive restore
code to the main function where other similar checks are performed.
Also reword the error message to be consistent with other messages.
The only option combination impacted is --create specified with
--single-transaction, and informing the caller at an early step saves
from opening the archive worked on. A TAP test is added for this
combination.
Author: Daniel Gustafsson
Reviewed-by: Fabien Coelho
Discussion: https://postgr.es/m/616808BD-4B59-4E6C-97A9-7317F62D5570@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c34bca9ea55e1d7c207ebc30691a8d2b421100eb
Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 9 ---------
src/bin/pg_dump/pg_restore.c | 11 +++++++++++
src/bin/pg_dump/t/001_basic.pl | 8 +++++++-
3 files changed, 18 insertions(+), 10 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Consolidate cross-option checks in pg_restore
In-Reply-To: <E1gHJw7-0007Ul-VX@gemulon.postgresql.org>
References: <E1gHJw7-0007Ul-VX@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