Re: Missing pg_control crashes postmaster - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Missing pg_control crashes postmaster
Date
Msg-id CAKFQuwaddW5vijF9rNhuvwEub08QnEzWft8hKbA=4jeKCq=F8w@mail.gmail.com
Whole thread Raw
In response to Missing pg_control crashes postmaster  (Brian Faherty <anothergenericuser@gmail.com>)
List pgsql-hackers
On Mon, Jul 23, 2018 at 12:31 PM, Brian Faherty <anothergenericuser@gmail.com> wrote:
There does not really seem to be a need for this behavior as all the
information postgres needs is in memory at this point. I propose with
a patch to just recreate pg_control on updates if it does not exist.

Or at minimum create said file with a different name in PGDATA so an admin can rename it should they wish to accept the in memory version as being a valid replacement for whatever ended up happening to the original.

Even if it can be safely rebuilt having pg_control removed out from under a running server seems like something that shouldn't happen and the server is in its rights to panic if it does.

David J.

pgsql-hackers by date:

Previous
From: Brian Faherty
Date:
Subject: Missing pg_control crashes postmaster
Next
From: Andres Freund
Date:
Subject: Re: Missing pg_control crashes postmaster