2018-01-10 Greg Clough

Bug in pg_rewind overwrites pg_control

For those of you that don’t monitor the pgsql-bugs mailing list, this interesting bug was posted recently: >> 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 […]