Thread: pg_rewind and replication slots

pg_rewind and replication slots

From
Vladimir Borodin
Date:
Hi.<div class=""><br class="" /></div><div class="">Should pg_rewind ignore pg_replslot dir at all? As it does
pg_basebackup,for example.<br class="" /><div apple-content-edited="true" class=""><div class="" style="color: rgb(0,
0,0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing:normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none;
white-space:normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br
class="Apple-interchange-newline"/>--</div><div class="" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size:
12px;font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal;
orphans:auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto;
word-spacing:0px; -webkit-text-stroke-width: 0px;">May the force be with you…</div><div class="" style="color: rgb(0,
0,0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing:normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none;
white-space:normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a class=""
href="https://simply.name">https://simply.name</a></div></div><brclass="" /></div> 

Re: pg_rewind and replication slots

From
Michael Paquier
Date:
On Fri, Nov 13, 2015 at 7:41 PM, Vladimir Borodin <root@simply.name> wrote:
> Should pg_rewind ignore pg_replslot dir at all? As it does pg_basebackup,
> for example.

To keep the code of pg_rewind simple, the decision has been made to
make pg_rewind copy everything, the necessary post-cleanup or
pre-process saving, like the target node's postgresql.conf that would
get overwritten, being at the charge of the upper application layer
calling pg_rewind.
-- 
Michael