Re: [COMMITTERS] pgsql: Add support for temporary replication slots - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: Add support for temporary replication slots
Date
Msg-id 3c8c413d-b476-93d2-652f-011a589a2d74@2ndquadrant.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Add support for temporary replication slots  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Responses Re: [COMMITTERS] pgsql: Add support for temporary replication slots  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
List pgsql-committers
On 12/12/16 8:28 PM, Petr Jelinek wrote:
> On 13/12/16 02:00, Andres Freund wrote:
>> On 2016-12-13 01:57:01 +0100, Petr Jelinek wrote:
>>> I mentioned that as possible solution upthread, I am only worried that
>>> the failure scenario is basically infinite loop.
>>
>> I don't see the problem with that. If you're really concerned you can
>> set a statement timeout.
>>
>
> Okay in case we decide it's the right way to go attached patch does
> that. I also added some more tests based on your feedback while I am at it.

This looks mostly reasonable to me, but the location and xid output from
pg_logical_slot_get_changes() is not portable/repeatable, so it should
be omitted from the output.

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


pgsql-committers by date:

Previous
From: Amit Langote
Date:
Subject: Re: [COMMITTERS] pgsql: Fix bugs in RelationGetPartitionDispatchInfo.
Next
From: Petr Jelinek
Date:
Subject: Re: [COMMITTERS] pgsql: Add support for temporary replication slots