mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
Standardize "WAL location" terminology
Other previously used terms were "WAL position" or "log position".
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
# must set a recovery target.
|
||||
#
|
||||
# You may set a recovery target either by transactionId, by name,
|
||||
# by timestamp or by WAL position (LSN). Recovery may either include or
|
||||
# by timestamp or by WAL location (LSN). Recovery may either include or
|
||||
# exclude the transaction(s) with the recovery target value (ie, stop either
|
||||
# just after or just before the given target, respectively).
|
||||
#
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* <parentTLI> <switchpoint> <reason>
|
||||
*
|
||||
* parentTLI ID of the parent timeline
|
||||
* switchpoint XLogRecPtr of the WAL position where the switch happened
|
||||
* switchpoint XLogRecPtr of the WAL location where the switch happened
|
||||
* reason human-readable explanation of why the timeline was changed
|
||||
*
|
||||
* The fields are separated by tabs. Lines beginning with # are comments, and
|
||||
@@ -278,7 +278,7 @@ findNewestTimeLine(TimeLineID startTLI)
|
||||
*
|
||||
* newTLI: ID of the new timeline
|
||||
* parentTLI: ID of its immediate parent
|
||||
* switchpoint: XLOG position where the system switched to the new timeline
|
||||
* switchpoint: WAL location where the system switched to the new timeline
|
||||
* reason: human-readable explanation of why the timeline was switched
|
||||
*
|
||||
* Currently this is only used at the end recovery, and so there are no locking
|
||||
|
@@ -2294,7 +2294,7 @@ RecordTransactionAbortPrepared(TransactionId xid,
|
||||
*
|
||||
* Store pointers to the start/end of the WAL record along with the xid in
|
||||
* a gxact entry in shared memory TwoPhaseState structure. If caller
|
||||
* specifies InvalidXLogRecPtr as WAL position to fetch the two-phase
|
||||
* specifies InvalidXLogRecPtr as WAL location to fetch the two-phase
|
||||
* data, the entry is marked as located on disk.
|
||||
*/
|
||||
void
|
||||
|
@@ -5643,7 +5643,7 @@ recoveryStopsBefore(XLogReaderState *record)
|
||||
recoveryStopTime = 0;
|
||||
recoveryStopName[0] = '\0';
|
||||
ereport(LOG,
|
||||
(errmsg("recovery stopping before WAL position (LSN) \"%X/%X\"",
|
||||
(errmsg("recovery stopping before WAL location (LSN) \"%X/%X\"",
|
||||
(uint32) (recoveryStopLSN >> 32),
|
||||
(uint32) recoveryStopLSN)));
|
||||
return true;
|
||||
@@ -5800,7 +5800,7 @@ recoveryStopsAfter(XLogReaderState *record)
|
||||
recoveryStopTime = 0;
|
||||
recoveryStopName[0] = '\0';
|
||||
ereport(LOG,
|
||||
(errmsg("recovery stopping after WAL position (LSN) \"%X/%X\"",
|
||||
(errmsg("recovery stopping after WAL location (LSN) \"%X/%X\"",
|
||||
(uint32) (recoveryStopLSN >> 32),
|
||||
(uint32) recoveryStopLSN)));
|
||||
return true;
|
||||
@@ -6323,7 +6323,7 @@ StartupXLOG(void)
|
||||
recoveryTargetName)));
|
||||
else if (recoveryTarget == RECOVERY_TARGET_LSN)
|
||||
ereport(LOG,
|
||||
(errmsg("starting point-in-time recovery to WAL position (LSN) \"%X/%X\"",
|
||||
(errmsg("starting point-in-time recovery to WAL location (LSN) \"%X/%X\"",
|
||||
(uint32) (recoveryTargetLSN >> 32),
|
||||
(uint32) recoveryTargetLSN)));
|
||||
else if (recoveryTarget == RECOVERY_TARGET_IMMEDIATE)
|
||||
@@ -7455,7 +7455,7 @@ StartupXLOG(void)
|
||||
exitArchiveRecovery(EndOfLogTLI, EndOfLog);
|
||||
|
||||
/*
|
||||
* Prepare to write WAL starting at EndOfLog position, and init xlog
|
||||
* Prepare to write WAL starting at EndOfLog location, and init xlog
|
||||
* buffer cache using the block containing the last record from the
|
||||
* previous incarnation.
|
||||
*/
|
||||
@@ -10159,7 +10159,7 @@ XLogFileNameP(TimeLineID tli, XLogSegNo segno)
|
||||
* when backup needs to generate tablespace_map file, it is used to
|
||||
* embed escape character before newline character in tablespace path.
|
||||
*
|
||||
* Returns the minimum WAL position that must be present to restore from this
|
||||
* Returns the minimum WAL location that must be present to restore from this
|
||||
* backup, and the corresponding timeline ID in *starttli_p.
|
||||
*
|
||||
* Every successfully started non-exclusive backup must be stopped by calling
|
||||
@@ -10669,7 +10669,7 @@ get_backup_status(void)
|
||||
* If labelfile is NULL, this stops an exclusive backup. Otherwise this stops
|
||||
* the non-exclusive backup specified by 'labelfile'.
|
||||
*
|
||||
* Returns the last WAL position that must be present to restore from this
|
||||
* Returns the last WAL location that must be present to restore from this
|
||||
* backup, and the corresponding timeline ID in *stoptli_p.
|
||||
*
|
||||
* It is the responsibility of the caller of this function to verify the
|
||||
@@ -11569,7 +11569,7 @@ next_record_is_invalid:
|
||||
}
|
||||
|
||||
/*
|
||||
* Open the WAL segment containing WAL position 'RecPtr'.
|
||||
* Open the WAL segment containing WAL location 'RecPtr'.
|
||||
*
|
||||
* The segment can be fetched via restore_command, or via walreceiver having
|
||||
* streamed the record, or it can already be present in pg_wal. Checking
|
||||
|
Reference in New Issue
Block a user