mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Ensure ThisTimeLineID is valid before START_REPLICATION
Craig Ringer
This commit is contained in:
parent
1fff35d872
commit
5ee2197767
1 changed files with 5 additions and 0 deletions
|
|
@ -488,6 +488,11 @@ StartReplication(StartReplicationCmd *cmd)
|
|||
StringInfoData buf;
|
||||
XLogRecPtr FlushPtr;
|
||||
|
||||
if (ThisTimeLineID == 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("IDENTIFY_SYSTEM has not been run before START_REPLICATION")));
|
||||
|
||||
/*
|
||||
* We assume here that we're logging enough information in the WAL for
|
||||
* log-shipping, since this is checked in PostmasterMain().
|
||||
|
|
|
|||
Loading…
Reference in a new issue