Skip to content

Commit a724584

Browse files
committed
We now accept read-only connections in state PM_RECOVERY_CONSISTENT.
1 parent 0b38f3b commit a724584

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.606 2010/04/28 16:10:42 heikki Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.607 2010/05/14 18:08:33 rhaas Exp $
4141
*
4242
* NOTES
4343
*
@@ -238,14 +238,12 @@ static bool RecoveryError = false; /* T if WAL recovery failed */
238238
*
239239
* When the startup process is ready to start archive recovery, it signals the
240240
* postmaster, and we switch to PM_RECOVERY state. The background writer is
241-
* launched, while the startup process continues applying WAL.
242-
* After reaching a consistent point in WAL redo, startup process signals
243-
* us again, and we switch to PM_RECOVERY_CONSISTENT state. There's currently
244-
* no difference between PM_RECOVERY and PM_RECOVERY_CONSISTENT, but we
245-
* could start accepting connections to perform read-only queries at this
246-
* point, if we had the infrastructure to do that.
247-
* When archive recovery is finished, the startup process exits with exit
248-
* code 0 and we switch to PM_RUN state.
241+
* launched, while the startup process continues applying WAL. If Hot Standby
242+
* is enabled, then, after reaching a consistent point in WAL redo, startup
243+
* process signals us again, and we switch to PM_RECOVERY_CONSISTENT state and
244+
* begin accepting connections to perform read-only queries. When archive
245+
* recovery is finished, the startup process exits with exit code 0 and we
246+
* switch to PM_RUN state.
249247
*
250248
* Normal child backends can only be launched when we are in PM_RUN or
251249
* PM_RECOVERY_CONSISTENT state. (We also allow launch of normal

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy