]> granicus.if.org Git - postgresql/commit
Allow HotStandbyActiveInReplay() to be called in single user mode.
authorAndres Freund <andres@anarazel.de>
Sun, 7 Jun 2015 22:30:26 +0000 (00:30 +0200)
committerAndres Freund <andres@anarazel.de>
Mon, 8 Jun 2015 12:09:52 +0000 (14:09 +0200)
commit18935145e7f31ca975e0763f73c8c3f12aa62672
tree163006808ec934c6aad8a6bf6aa24d488f53c193
parent3e69a73b98abbbca7aefd77451e9197a4eea2b6e
Allow HotStandbyActiveInReplay() to be called in single user mode.

HotStandbyActiveInReplay, introduced in 061b079f, only allowed WAL
replay to happen in the startup process, missing the single user case.

This buglet is fairly harmless as it only causes problems when single
user mode in an assertion enabled build is used to replay a btree vacuum
record.

Backpatch to 9.2. 061b079f was backpatched further, but the assertion
was not.
src/backend/access/transam/xlog.c