Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e7811e

Browse files
committed
Eliminate replication protocol error related to IDENTIFY_SYSTEM.
The requirement that IDENTIFY_SYSTEM be run before START_REPLICATIONwas both undocumented and unnecessary. Remove the error and ensurethat ThisTimeLineID is initialized in START_REPLICATION.Elect not to backport because this requirement was expected behavior(even if inconsistently enforced), and is not likely to cause anymajor problem.Author: Jeff DavisReviewed-by: Andres FreundDiscussion:https://postgr.es/m/de4bbf05b7cd94227841c433ea6ff71d2130c713.camel%40j-davis.com
1 parent31e8cfa commit8e7811e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/backend/replication/walsender.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,6 @@ StartReplication(StartReplicationCmd *cmd)
573573
StringInfoDatabuf;
574574
XLogRecPtrFlushPtr;
575575

576-
if (ThisTimeLineID==0)
577-
ereport(ERROR,
578-
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
579-
errmsg("IDENTIFY_SYSTEM has not been run before START_REPLICATION")));
580-
581576
/* create xlogreader for physical replication */
582577
xlogreader=
583578
XLogReaderAllocate(wal_segment_size,NULL,
@@ -619,6 +614,7 @@ StartReplication(StartReplicationCmd *cmd)
619614
* that. Otherwise use the timeline of the last replayed record, which is
620615
* kept in ThisTimeLineID.
621616
*/
617+
am_cascading_walsender=RecoveryInProgress();
622618
if (am_cascading_walsender)
623619
{
624620
/* this also updates ThisTimeLineID */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp