Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Andreas Pflug wrote:
>> So to get this down to a solution, it appears to be correct to execute
>> the RequestXLogSwitch right before CreateCheckPoint?
> Hmm, then the checkpoint record isn't archived. That might be
> acceptable, though, since all data would be safe in the preceding WAL.
Not at all, because the database would be very unhappy at restart
if it can't find the checkpoint record pg_control is pointing to.
regards, tom lane