mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +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;
|
StringInfoData buf;
|
||||||
XLogRecPtr FlushPtr;
|
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
|
* We assume here that we're logging enough information in the WAL for
|
||||||
* log-shipping, since this is checked in PostmasterMain().
|
* log-shipping, since this is checked in PostmasterMain().
|
||||||
|
Reference in New Issue
Block a user