diff options
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 21 | ||||
-rw-r--r-- | src/backend/postmaster/startup.c | 2 |
2 files changed, 2 insertions, 21 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index a492c60b46a..8f39aec1808 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2564,27 +2564,6 @@ reaper(SIGNAL_ARGS) pmState = PM_RUN; /* - * Kill any walsenders to force the downstream standby(s) to - * reread the timeline history file, adjust their timelines and - * establish replication connections again. This is required - * because the timeline of cascading standby is not consistent - * with that of cascaded one just after failover. We LOG this - * message since we need to leave a record to explain this - * disconnection. - * - * XXX should avoid the need for disconnection. When we do, - * am_cascading_walsender should be replaced with - * RecoveryInProgress() - */ - if (max_wal_senders > 0 && CountChildren(BACKEND_TYPE_WALSND) > 0) - { - ereport(LOG, - (errmsg("terminating all walsender processes to force cascaded " - "standby(s) to update timeline and reconnect"))); - SignalSomeChildren(SIGUSR2, BACKEND_TYPE_WALSND); - } - - /* * Crank up the background tasks, if we didn't do that already * when we entered consistent recovery state. It doesn't matter * if this fails, we'll just try again later. diff --git a/src/backend/postmaster/startup.c b/src/backend/postmaster/startup.c index ab4d1645f24..70b75c72927 100644 --- a/src/backend/postmaster/startup.c +++ b/src/backend/postmaster/startup.c @@ -5,6 +5,8 @@ * The Startup process initialises the server and performs any recovery * actions that have been specified. Notice that there is no "main loop" * since the Startup process ends as soon as initialisation is complete. + * (in standby mode, one can think of the replay loop as a main loop, + * though.) * * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group |