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
30c22eb8
Commit
30c22eb8
authored
Aug 12, 2010
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct sundry errors in Hot Standby-related comments.
Fujii Masao
parent
00f76dbf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
23 deletions
+23
-23
src/backend/access/transam/xact.c
src/backend/access/transam/xact.c
+3
-3
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procarray.c
+10
-10
src/backend/storage/ipc/standby.c
src/backend/storage/ipc/standby.c
+4
-4
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+2
-2
src/include/access/xlog.h
src/include/access/xlog.h
+2
-2
src/include/catalog/pg_control.h
src/include/catalog/pg_control.h
+2
-2
No files found.
src/backend/access/transam/xact.c
View file @
30c22eb8
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.29
5 2010/07/29 22:27:27 srigg
s Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.29
6 2010/08/12 23:24:53 rhaa
s Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -4522,9 +4522,9 @@ xact_redo_abort(xl_xact_abort *xlrec, TransactionId xid)
sub_xids
=
(
TransactionId
*
)
&
(
xlrec
->
xnodes
[
xlrec
->
nrels
]);
max_xid
=
TransactionIdLatest
(
xid
,
xlrec
->
nsubxacts
,
sub_xids
);
/* Make sure nextXid is beyond any XID mentioned in the record */
/*
* Make sure nextXid is beyond any XID mentioned in the record.
*
* We don't expect anyone else to modify nextXid, hence we don't need to
* hold a lock while checking this. We still acquire the lock to modify
* it, though.
...
...
src/backend/storage/ipc/procarray.c
View file @
30c22eb8
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.7
2 2010/07/06 19:18:57 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.7
3 2010/08/12 23:24:54 rhaas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -449,7 +449,7 @@ ProcArrayInitRecoveryInfo(TransactionId oldestActiveXid)
/*
* ProcArrayApplyRecoveryInfo -- apply recovery info about xids
*
* Takes us through 3 states:
Uni
nitialized, Pending and Ready.
* Takes us through 3 states:
I
nitialized, Pending and Ready.
* Normal case is to go all the way to Ready straight away, though there
* are atypical cases where we need to take it in steps.
*
...
...
@@ -487,7 +487,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
return
;
/*
* If our initial Running
Xact
Data had an overflowed snapshot then we knew
* If our initial Running
Transactions
Data had an overflowed snapshot then we knew
* we were missing some subxids from our snapshot. We can use this data as
* an initial snapshot, but we cannot yet mark it valid. We know that the
* missing subxids are equal to or earlier than nextXid. After we
...
...
@@ -518,7 +518,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
Assert
(
standbyState
==
STANDBY_INITIALIZED
);
/*
* OK, we need to initialise from the Running
Xact
Data record
* OK, we need to initialise from the Running
Transactions
Data record
*/
/*
...
...
@@ -1499,7 +1499,7 @@ GetRunningTransactionData(void)
suboverflowed
=
true
;
/*
* Top-level XID of a transaction is always
greater
than any of
* Top-level XID of a transaction is always
less
than any of
* its subxids, so we don't need to check if any of the subxids
* are smaller than oldestRunningXid
*/
...
...
@@ -2313,7 +2313,7 @@ DisplayXidCache(void)
* aborted but we think they were running; the distinction is irrelevant
* because either way any changes done by the transaction are not visible to
* backends in the standby. We prune KnownAssignedXids when
* XLOG_
XACT_
RUNNING_XACTS arrives, to forestall possible overflow of the
* XLOG_RUNNING_XACTS arrives, to forestall possible overflow of the
* array due to such dead XIDs.
*/
...
...
@@ -2323,9 +2323,9 @@ DisplayXidCache(void)
* unobserved XIDs.
*
* RecordKnownAssignedTransactionIds() should be run for *every* WAL record
* type apart from XLOG_
XACT_
RUNNING_XACTS (since that initialises the first
* type apart from XLOG_RUNNING_XACTS (since that initialises the first
* snapshot so that RecordKnownAssignedTransactionIds() can be called). Must
* be called for each record after we have executed StartupCL
og
() et al,
* be called for each record after we have executed StartupCL
OG
() et al,
* since we must ExtendCLOG() etc..
*
* Called during recovery in analogy with and in place of GetNewTransactionId()
...
...
@@ -3046,11 +3046,11 @@ KnownAssignedXidsDisplay(int trace_level)
if
(
KnownAssignedXidsValid
[
i
])
{
nxids
++
;
appendStringInfo
(
&
buf
,
"[%
u
]=%u "
,
i
,
KnownAssignedXids
[
i
]);
appendStringInfo
(
&
buf
,
"[%
d
]=%u "
,
i
,
KnownAssignedXids
[
i
]);
}
}
elog
(
trace_level
,
"%d KnownAssignedXids (num=%
u tail=%u head=%u
) %s"
,
elog
(
trace_level
,
"%d KnownAssignedXids (num=%
d tail=%d head=%d
) %s"
,
nxids
,
pArray
->
numKnownAssignedXids
,
pArray
->
tailKnownAssignedXids
,
...
...
src/backend/storage/ipc/standby.c
View file @
30c22eb8
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.2
7 2010/07/06 19:18:57 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.2
8 2010/08/12 23:24:54 rhaas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -522,7 +522,7 @@ CheckRecoveryConflictDeadlock(LWLockId partitionLock)
* one transaction on one relation, and don't worry about lock queuing.
*
* We keep a single dynamically expandible list of locks in local memory,
* RelationLockList, so we can keep track of the various entrie
d
made by
* RelationLockList, so we can keep track of the various entrie
s
made by
* the Startup process's virtual xid in the shared lock table.
*
* List elements use type xl_rel_lock, since the WAL record type exactly
...
...
@@ -700,7 +700,7 @@ standby_redo(XLogRecPtr lsn, XLogRecord *record)
{
uint8
info
=
record
->
xl_info
&
~
XLR_INFO_MASK
;
/* Do nothing if we're not in standby mode */
/* Do nothing if we're not in
hot
standby mode */
if
(
standbyState
==
STANDBY_DISABLED
)
return
;
...
...
@@ -872,7 +872,7 @@ LogStandbySnapshot(TransactionId *oldestActiveXid, TransactionId *nextXid)
/*
* Record an enhanced snapshot of running transactions into WAL.
*
* The definitions of RunningTransactionData and xl_xact_running_xacts
* The definitions of RunningTransaction
s
Data and xl_xact_running_xacts
* are similar. We keep them separate because xl_xact_running_xacts
* is a contiguous chunk of memory and never exists fully until it is
* assembled in WAL.
...
...
src/backend/tcop/postgres.c
View file @
30c22eb8
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.59
5 2010/07/06 19:18:57 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.59
6 2010/08/12 23:24:54 rhaas
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -2741,7 +2741,7 @@ SigHupHandler(SIGNAL_ARGS)
/*
* RecoveryConflictInterrupt: out-of-line portion of recovery conflict
* handling ollowing receipt of SIGUSR1. Designed to be similar to die()
* handling
f
ollowing receipt of SIGUSR1. Designed to be similar to die()
* and StatementCancelHandler(). Called only by a normal user backend
* that begins a transaction during recovery.
*/
...
...
src/include/access/xlog.h
View file @
30c22eb8
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.11
5 2010/07/29 22:27:27 srigg
s Exp $
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.11
6 2010/08/12 23:24:54 rhaa
s Exp $
*/
#ifndef XLOG_H
#define XLOG_H
...
...
@@ -149,7 +149,7 @@ extern bool InRecovery;
* InHotStandby will read as FALSE).
*
* In DISABLED state, we're performing crash recovery or hot standby was
* disabled in
recovery
.conf.
* disabled in
postgresql
.conf.
*
* In INITIALIZED state, we've run InitRecoveryTransactionEnvironment, but
* we haven't yet processed a RUNNING_XACTS or shutdown-checkpoint WAL record
...
...
src/include/catalog/pg_control.h
View file @
30c22eb8
...
...
@@ -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
7 2010/06/03 20:37:13 alvherre
Exp $
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.5
8 2010/08/12 23:24:54 rhaas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -45,7 +45,7 @@ typedef struct CheckPoint
/*
* Oldest XID still running. This is only needed to initialize hot standby
* mode from an online checkpoint, so we only bother calculating this for
* online checkpoints and only when
archiving is enabled
. Otherwise it's
* online checkpoints and only when
wal_level is hot_standby
. Otherwise it's
* set to InvalidTransactionId.
*/
TransactionId
oldestActiveXid
;
...
...
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