Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
491d1ea5
Commit
491d1ea5
authored
Apr 23, 2010
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Previous patch revoked following objections.
parent
6ca23b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+3
-14
src/include/catalog/pg_control.h
src/include/catalog/pg_control.h
+2
-6
No files found.
src/backend/access/transam/xlog.c
View file @
491d1ea5
...
...
@@ -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.40
2 2010/04/23 19:57:18
sriggs Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.40
3 2010/04/23 20:21:31
sriggs Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -5568,12 +5568,7 @@ CheckRequiredParameterValues(CheckPoint checkPoint)
RecoveryRequiresIntParameter
(
"max_locks_per_xact"
,
max_locks_per_xact
,
checkPoint
.
max_locks_per_xact
);
/*
* Hot Standby currently only depends upon the presence of WAL
* records as indicated by XLOG_MODE_HOT_STANDBY. There is no current
* dependency on whether archiving or streaming are enabled, if either.
*/
if
(
!
(
checkPoint
.
XLogModeFlags
&
XLOG_MODE_HOT_STANDBY
))
if
(
!
checkPoint
.
XLogStandbyInfoMode
)
ereport
(
ERROR
,
(
errmsg
(
"recovery connections cannot start because the recovery_connections "
"parameter is disabled on the WAL source server"
)));
...
...
@@ -7007,13 +7002,7 @@ CreateCheckPoint(int flags)
checkPoint
.
MaxConnections
=
MaxConnections
;
checkPoint
.
max_prepared_xacts
=
max_prepared_xacts
;
checkPoint
.
max_locks_per_xact
=
max_locks_per_xact
;
if
(
XLogArchivingActive
())
checkPoint
.
XLogModeFlags
|=
XLOG_MODE_ARCHIVING
;
if
(
max_wal_senders
>
0
)
checkPoint
.
XLogModeFlags
|=
XLOG_MODE_STREAMING
;
if
(
XLogRequestRecoveryConnections
)
checkPoint
.
XLogModeFlags
|=
XLOG_MODE_HOT_STANDBY
;
checkPoint
.
XLogStandbyInfoMode
=
XLogStandbyInfoActive
();
/*
* We must hold WALInsertLock while examining insert state to determine
...
...
src/include/catalog/pg_control.h
View file @
491d1ea5
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.5
2 2010/04/23 19:57:19
sriggs Exp $
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.5
3 2010/04/23 20:21:31
sriggs Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -45,7 +45,7 @@ typedef struct CheckPoint
int
MaxConnections
;
int
max_prepared_xacts
;
int
max_locks_per_xact
;
int
XLogModeFlags
;
bool
XLogStandbyInfoMode
;
/*
* Oldest XID still running. This is only needed to initialize hot standby
...
...
@@ -65,10 +65,6 @@ typedef struct CheckPoint
#define XLOG_BACKUP_END 0x50
#define XLOG_UNLOGGED 0x60
/* XLogModeFlags */
#define XLOG_MODE_ARCHIVING (1 << 0)
#define XLOG_MODE_STREAMING (1 << 1)
#define XLOG_MODE_HOT_STANDBY (1 << 2)
/* System status indicator */
typedef
enum
DBState
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment