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

Commita724584

Browse files
committed
We now accept read-only connections in state PM_RECOVERY_CONSISTENT.
1 parent0b38f3b commita724584

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)

[8]ページ先頭

©2009-2025 Movatter.jp