pgsql: Optionally don't error out due to preexisting slots in commandli

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Optionally don't error out due to preexisting slots in commandli
Date: 2015-07-12 20:17:37
Message-ID: E1ZENgv-0001up-3x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Optionally don't error out due to preexisting slots in commandline utilities.

pg_receivexlog and pg_recvlogical error out when --create-slot is
specified and a slot with the same name already exists. In some cases,
especially with pg_receivexlog, that's rather annoying and requires
additional scripting.

Backpatch to 9.5 as slot control functions have newly been added to
pg_receivexlog, and there doesn't seem much point leaving it in a less
useful state.

Discussion: 20150619144755(dot)GG29350(at)alap3(dot)anarazel(dot)de

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pg_receivexlog.sgml | 10 ++++++++
doc/src/sgml/ref/pg_recvlogical.sgml | 10 ++++++++
src/bin/pg_basebackup/pg_receivexlog.c | 11 ++++++--
src/bin/pg_basebackup/pg_recvlogical.c | 9 ++++++-
src/bin/pg_basebackup/streamutil.c | 44 ++++++++++++++------------------
src/bin/pg_basebackup/streamutil.h | 4 +--
6 files changed, 58 insertions(+), 30 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2015-07-12 20:17:39 pgsql: Optionally don't error out due to preexisting slots in commandli
Previous Message Noah Misch 2015-07-12 16:17:19 TRANSFORM modules vs. AIX