From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@postgresql.org
Cc: office@tiptop-labs.com
Subject: BUG #14999: pg_rewind corrupts control file global/pg_control
Date: Thu, 04 Jan 2018 20:06:33 +0000
Message-ID: <20180104200633.17004.16377@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 14999
Logged by: Christian H.
Email address: office@tiptop-labs.com
PostgreSQL version: 10.1
Operating system: e.g. Debian Buster
Description:
I have encountered a bug in PostgreSQL 10.1: when the target directory for
pg_rewind contains a read-only file (e.g. server.key), pg_rewind exits with
"could not open target file" (legitimate) and corrupts the control file
global/pg_control to size 0 (bug). From now on, pg_rewind always exits with
"unexpected control file size 0, expected 8192" and a restore from
pg_basebackup is needed.
A patch for branch REL_10_STABLE of repository
https://github.com/postgres/postgres, a README, and Dockerfiles for
demonstrating both bug and patch are available from
https://github.com/tiptop-labs/postgres-patches .
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, office@tiptop-labs.com
Subject: Re: BUG #14999: pg_rewind corrupts control file global/pg_control
In-Reply-To: <20180104200633.17004.16377@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox