Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
cf2575b8
Commit
cf2575b8
authored
14 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Check compulsory parameters in recovery.conf in standby_mode, per docs.
parent
3e754a89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/access/transam/xlog.c
+18
-6
18 additions, 6 deletions
src/backend/access/transam/xlog.c
with
18 additions
and
6 deletions
src/backend/access/transam/xlog.c
+
18
−
6
View file @
cf2575b8
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.38
7
2010/04/02
13:10:56
sriggs Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.38
8
2010/04/02
21:50:40
sriggs Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -5086,11 +5086,23 @@ readRecoveryCommandFile(void)
cmdline
),
errhint
(
"Lines should have the format parameter = 'value'."
)));
/* If not in standby mode, restore_command must be supplied */
if
(
!
StandbyMode
&&
recoveryRestoreCommand
==
NULL
)
ereport
(
FATAL
,
(
errmsg
(
"recovery command file
\"
%s
\"
did not specify restore_command nor standby_mode"
,
RECOVERY_COMMAND_FILE
)));
/*
* Check for compulsory parameters
*/
if
(
StandbyMode
)
{
if
(
PrimaryConnInfo
==
NULL
&&
recoveryRestoreCommand
==
NULL
)
ereport
(
FATAL
,
(
errmsg
(
"recovery command file
\"
%s
\"
specified neither primary_conninfo nor restore_command"
,
RECOVERY_COMMAND_FILE
)));
}
else
{
if
(
recoveryRestoreCommand
==
NULL
)
ereport
(
FATAL
,
(
errmsg
(
"recovery command file
\"
%s
\"
did not specify restore_command nor standby_mode"
,
RECOVERY_COMMAND_FILE
)));
}
/* Enable fetching from archive recovery area */
InArchiveRecovery
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment