Re: pg_ctl promote wait - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_ctl promote wait
Date
Msg-id 26681.1455912520@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_ctl promote wait  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is it safe to read pg_control externally without a lock?  pg_controldata
> will just report a CRC error and proceed, and if you're not sure you can
> just run it again.  But if a promotion fails every so often because of
> concurrent pg_control writes, that would make this feature annoying.

Just retry the read till you don't get a CRC error.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: checkpointer continuous flushing - V16
Next
From: Tom Lane
Date:
Subject: Re: pg_ctl promote wait