Re: odd buildfarm failure - "pg_ctl: control file appears to be corrupt"

Anton A. Melnikov <aamelnikov@inbox.ru>

From: "Anton A. Melnikov" <aamelnikov@inbox.ru>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org
Date: 2023-03-08T22:10:57Z
Lists: pgsql-hackers
On 08.03.2023 07:28, Thomas Munro wrote:
> Sorry, I was confused; please ignore that part.  We don't have a copy
> of the control file anywhere else.  (Perhaps we should, but that could
> be a separate topic.)

That’s all right! Fully agreed that this is a possible separate topic.

Sincerely yours,

-- 
Anton A. Melnikov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



Commits

  1. Try to handle torn reads of pg_control in frontend.

  2. Acquire ControlFileLock in relevant SQL functions.