Avoid starting walreceiver in states where it shouldn't be running.

Robert Haas <rhaas@postgresql.org>

Commit: 5e85315ea7a4040b5faeddeebbbadb81fed234c9
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-05-27T02:01:37Z
Releases: 9.0.0
Avoid starting walreceiver in states where it shouldn't be running.

In particular, it's bad to start walreceiver when in state
PM_WAIT_BACKENDS, because we have no provision to kill walreceiver
when in that state.

Fujii Masao

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +4 −2