Patch: add --if-exists to pg_recvlogical

From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Patch: add --if-exists to pg_recvlogical
Date: 2017-05-21 19:04:22
Message-ID: CAFnxYwhoVnL3cxDoWXWfFzrzGWUgnFd0f2DFb0eNjPr7AvFLmQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hackers,

While doing some scripting around pg_recvlogical at $work, I found a need
for $subject. Attached, find a patch to that effect.

I tried simply to mirror the logic used elsewhere. I don't think there's
anything controversial here, but welcome any comments or suggestions.

This applies and builds successfully against master, and behaves as
designed (i.e., dropping or trying to stream from a nonexistent slot exits
cleanly). It doesn't affect any other behavior I could observe.

If accepted, this will likely need a pgindent run upon merging; I had to
give up on the rabbit hole of getting that working locally.

Thanks,

rls

--
:wq

Attachment Content-Type Size
pg_recvlogical--if-exists-v1.patch application/octet-stream 6.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Piotr Stefaniak 2017-05-21 19:52:46 Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.)
Previous Message Alvaro Herrera 2017-05-21 18:52:38 translatable string fixes