Re: ThisTimeLineID is used uninitialized in basebackup.c, too

2021-10-29 Thread Robert Haas
On Fri, Oct 29, 2021 at 7:28 AM Michael Paquier wrote: > Yes, I agree that it is a good idea to cut the dependency of those > code paths with ThisTimeLineID, expecting IDENTIFY_SYSTEM to have done > the job beforehand. One argument in favor of your change, though I'd > like to think that nobody d

Re: ThisTimeLineID is used uninitialized in basebackup.c, too

2021-10-29 Thread Robert Haas
On Thu, Oct 28, 2021 at 9:27 PM Kyotaro Horiguchi wrote: > The first hunk is useless but seems good for sanity. The second hunk > looks good. (I think we can call CheckXLogRemoved before collecting > file names but it would be another thing.) The third and fifth hunks > look fine. Thanks for your

Re: ThisTimeLineID is used uninitialized in basebackup.c, too

2021-10-29 Thread Michael Paquier
On Thu, Oct 28, 2021 at 11:39:52AM -0400, Robert Haas wrote: > I previously reported[1] that CreateReplicationSlot() was accessing > the global variable ThisTimeLineID when it might not be initialized. > Today I realized that the code in basebackup.c has the same problem. > perform_base_backup() bl

Re: ThisTimeLineID is used uninitialized in basebackup.c, too

2021-10-28 Thread Kyotaro Horiguchi
At Thu, 28 Oct 2021 11:39:52 -0400, Robert Haas wrote in > I previously reported[1] that CreateReplicationSlot() was accessing > the global variable ThisTimeLineID when it might not be initialized. > Today I realized that the code in basebackup.c has the same problem. > perform_base_backup() bli