Re: Allowing pg_recvlogical to create temporary replication slots - Mailing list pgsql-hackers

From Dickson S. Guedes
Subject Re: Allowing pg_recvlogical to create temporary replication slots
Date
Msg-id CALwLAkRss6q0CcWx29o4pdqNB0BpVbf8kit+xFUXWeUD2709XQ@mail.gmail.com
Whole thread Raw
In response to Re: Allowing pg_recvlogical to create temporary replication slots  (Torsten Förtsch <tfoertsch123@gmail.com>)
List pgsql-hackers
Em ter., 12 de nov. de 2024 às 07:54, Torsten Förtsch
<tfoertsch123@gmail.com> escreveu:
> Hi Dickson,
>
> [ ... ]
>
> If the slot existed before, the existing slot will be used, no error is generated. In that case the slot will keep
existingwhen the connection is dropped. 
>
> The following situation can happen:
> - the slot does not exist and is created as a temporary slot
> - the connection drops and pg_recvlogical tries to reconnect after a few seconds
> - in that period a permanent slot by the same name is created but no reader is connected to it
> - pg_recvlogical reconnects and finds the existing slot
>
> In this case, the now existing slot is simply used. It will remain when the connection is dropped.
>
> Thanks for reviewing.

Thank you for your clarification.

Are you planning to add changes in docs? Would be important to have
this clarification in there also, IMHO.

Regards.
--
Dickson S. Guedes



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Commit Timestamp and LSN Inversion issue
Next
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Refactor SLRU to always use long file names