Re: Patch: add --if-exists to pg_recvlogical

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch: add --if-exists to pg_recvlogical
Date: 2017-09-01 17:22:27
Message-ID: 67cc7e5b-2c8e-7da8-4d02-3ea92eb775d4@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 8/26/17 15:40, Rosser Schwarz wrote:
> On Fri, Aug 25, 2017 at 12:34 PM, Robert Haas <robertmhaas(at)gmail(dot)com
> <mailto:robertmhaas(at)gmail(dot)com>> wrote:
>
> On Sun, May 21, 2017 at 3:04 PM, Rosser Schwarz
> <rosser(dot)schwarz(at)gmail(dot)com <mailto:rosser(dot)schwarz(at)gmail(dot)com>> wrote:
> > While doing some scripting around pg_recvlogical at $work, I found a need
> > for $subject. Attached, find a patch to that effect... 
>
> Please add this to commitfest.postgresql.org
> <http://commitfest.postgresql.org>
>
>
> Done, thanks!
>
> https://commitfest.postgresql.org/14/1256/

<varlistentry>
+ <term><option>--if-exists</option></term>
+ <listitem>
+ <para>
+ Do not error out when <option>--drop-slot</option> or
<option>--start<option> are
+ specified and a slot with the specified name does not exist.
+ </para>
+ </listitem>
+ </varlistentry>

I understand the --drop-slot part. But I don't understand what it means
to ignore a missing replication slot when running --start.

The same option should be added to pg_receivewal as well.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-09-01 17:23:52 Re: OpenFile() Permissions Refactor
Previous Message Daniel Gustafsson 2017-09-01 17:22:22 Re: GnuTLS support