mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Ensure ThisTimeLineID is valid before START_REPLICATION
Craig Ringer
This commit is contained in:
@ -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().
|
||||
|
Reference in New Issue
Block a user