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

Commit0b51d42

Browse files
committed
doc: Additional information about timeline ID hexadecimal format
Timeline IDs are sometimes presented to the user in hexadecimal format(for example in WAL file names). Add a few bits of information toclarify this.Author: Sébastien Lardière <sebastien@lardiere.net>Discussion:https://www.postgresql.org/message-id/flat/8fef346e-2541-76c3-d768-6536ae052993@lardiere.net
1 parent785f709 commit0b51d42

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,16 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
13091309
a new timeline is created to identify the series of WAL records
13101310
generated after that recovery. The timeline
13111311
ID number is part of WAL segment file names so a new timeline does
1312-
not overwrite the WAL data generated by previous timelines. It is
1312+
not overwrite the WAL data generated by previous timelines.
1313+
For example, in the WAL file name
1314+
<filename>0000000100001234000055CD</filename>, the leading
1315+
<literal>00000001</literal> is the timeline ID in hexadecimal. (Note that
1316+
in other contexts, such as server log messages, timeline IDs are
1317+
usually printed in decimal.)
1318+
</para>
1319+
1320+
<para>
1321+
It is
13131322
in fact possible to archive many different timelines. While that might
13141323
seem like a useless feature, it's often a lifesaver. Consider the
13151324
situation where you aren't quite sure what point-in-time to recover to,

‎doc/src/sgml/config.sgml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,6 +4113,14 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
41134113
a standby server. <literal>latest</literal> is the default.
41144114
</para>
41154115

4116+
<para>
4117+
To specify a timeline ID in hexadecimal (for example, if extracted
4118+
from a WAL file name or history file), prefix it with a
4119+
<literal>0x</literal>. For instance, if the WAL file name is
4120+
<filename>00000011000000A10000004F</filename>, then the timeline ID is
4121+
<literal>0x11</literal> (or 17 decimal).
4122+
</para>
4123+
41164124
<para>
41174125
You usually only need to set this parameter
41184126
in complex re-recovery situations, where you need to return to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp