Re: ThisTimeLineID can be used uninitialized - Mailing list pgsql-hackers

From Robert Haas
Subject Re: ThisTimeLineID can be used uninitialized
Date
Msg-id CA+TgmoYD3FqgJ6xf15gYCH+Ui7bndXhAkE9oUQWf4fTa=7ASEw@mail.gmail.com
Whole thread Raw
In response to Re: ThisTimeLineID can be used uninitialized  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Oct 21, 2021 at 3:29 PM Robert Haas <robertmhaas@gmail.com> wrote:
> I think the correct fix for this particular problem is just to delete
> the initialization, as in the attached patch. I spent a long time
> studying this today and eventually convinced myself that there's just
> no way these initializations can ever do anything (details in proposed
> commit message).  While it is important that we do not access the
> global variable when it's uninitialized, here there is no reason to
> access it in the first place.

I have committed this.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump versus ancient server versions
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_dump versus ancient server versions