Re: pg_rewind: Skip log directory for file type check like pg_wal - Mailing list pgsql-hackers

From Soumyadeep Chakraborty
Subject Re: pg_rewind: Skip log directory for file type check like pg_wal
Date
Msg-id CAE-ML+-FK1c=Q=J7_kzrTuZ9OjMbz=9eE8EDYsOZxOky6hmruQ@mail.gmail.com
Whole thread Raw
In response to Re: pg_rewind: Skip log directory for file type check like pg_wal  (Alexander Kukushkin <cyberdemn@gmail.com>)
Responses Re: pg_rewind: Skip log directory for file type check like pg_wal  (Alexander Kukushkin <cyberdemn@gmail.com>)
List pgsql-hackers
On Mon, Mar 6, 2023 at 11:33 PM Alexander Kukushkin <cyberdemn@gmail.com> wrote:
>
>
> Lets assume that on the source we have "pg_log" and on the target we have "my_log" (they are configured using
"log_directory"GUC). 
> When doing rewind in this case we want neither to remove the content of "my_log" on the target nor to copy content of
"pg_log"from the source. 
> It couldn't be achieved just by introducing a static string "log". The "log_directory" GUC must be examined on both,
sourceand target. 

Trouble with doing that is if pg_rewind is run in non-libpq (offline)
mode. Then we would have to parse it out of the conf file(s)?
Is there a standard way of doing that?

Regards,
Soumyadeep (VMware)



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: [PATCH] Use indexes on the subscriber when REPLICA IDENTITY is full on the publisher
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Rework LogicalOutputPluginWriterUpdateProgress