We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fff35d commit 5ee2197Copy full SHA for 5ee2197
src/backend/replication/walsender.c
@@ -488,6 +488,11 @@ StartReplication(StartReplicationCmd *cmd)
488
StringInfoData buf;
489
XLogRecPtr FlushPtr;
490
491
+ if (ThisTimeLineID == 0)
492
+ ereport(ERROR,
493
+ (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
494
+ errmsg("IDENTIFY_SYSTEM has not been run before START_REPLICATION")));
495
+
496
/*
497
* We assume here that we're logging enough information in the WAL for
498
* log-shipping, since this is checked in PostmasterMain().
0 commit comments