how come that the only comment in pg_rewind about fsyncing is '
/* fsync? */
Isn't that a bit, uh, minimal for a utility that's likely to be used in
I think we might actually be "saved" due to
because pg_rewind appears to leave the cluster in
ControlFile_new.state = DB_IN_ARCHIVE_RECOVERY;
a state that StartupXLOG will treat as needing recovery:
if (ControlFile->state != DB_SHUTDOWNED &&
ControlFile->state != DB_SHUTDOWNED_IN_RECOVERY)
but that code went in after pg_rewind, so this certainly can't be an
I also don't think it's ok that you need to start the cluster to make it
safe against a crash?
I guess the easiest fix would be to shell out to initdb -s?
Sent via pgsql-hackers mailing list (email@example.com)
To make changes to your subscription: