Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d1b9582

Browse files
committed
Allow HotStandbyActiveInReplay() to be called in single user mode.
HotStandbyActiveInReplay, introduced in 061b079, 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. 061b079 was backpatched further, but the assertion was not.
1 parent 94d6727 commit d1b9582

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7587,7 +7587,7 @@ HotStandbyActive(void)
75877587
bool
75887588
HotStandbyActiveInReplay(void)
75897589
{
7590-
Assert(AmStartupProcess());
7590+
Assert(AmStartupProcess() || !IsPostmasterEnvironment);
75917591
return LocalHotStandbyActive;
75927592
}
75937593

0 commit comments

Comments
 (0)