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
d755688f
Commit
d755688f
authored
20 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update PITR mention of which WAL files are needed.
parent
db306521
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/backup.sgml
+26
-17
26 additions, 17 deletions
doc/src/sgml/backup.sgml
with
26 additions
and
17 deletions
doc/src/sgml/backup.sgml
+
26
−
17
View file @
d755688f
<!--
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.6
1
2005/04/1
7
0
3:05:19
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.6
2
2005/04/1
8
0
1:29:00
momjian Exp $
-->
<chapter id="backup">
<title>Backup and Restore</title>
...
...
@@ -724,23 +724,32 @@ SELECT pg_stop_backup();
<para>
To make use of this backup, you will need to keep around all the WAL
segment files generated
at or
after the
starting time of the
backup.
segment files generated
during and
after the
file system
backup.
To aid you in doing this, the <function>pg_stop_backup</> function
creates a <firstterm>backup history file</> that is immediately stored
into the WAL archive area. This file is named after the first WAL
segment file that you need to have to make use of the backup. For
example, if the starting WAL file is <literal>0000000100001234000055CD</>
the backup history file will be named something like
<literal>0000000100001234000055CD.007C9330.backup</>. (The second part of
this file name stands for an exact position within the WAL file, and can
ordinarily be ignored.) Once you have safely archived this WAL
segment file, you can delete all archived WAL segments with names numerically
preceding this one. The backup history file is just a small text file.
It contains the label string you gave to <function>pg_start_backup</>, as
well as the starting and ending times of the backup. If you used the
label to identify where the associated dump file is kept, then the
archived history file is enough to tell you which dump file to restore,
should you need to do so.
creates a <firstterm>backup history file</> that is immediately
stored into the WAL archive area. This file is named after the first
WAL segment file that you need to have to make use of the backup.
For example, if the starting WAL file is
<literal>0000000100001234000055CD</> the backup history file will be
named something like
<literal>0000000100001234000055CD.007C9330.backup</>. (The second
number in the file name stands for an exact position within the WAL
file, and can ordinarily be ignored.) Once you have safely archived
the WAL segment files used during the file system backup (as
specified in the backup history file), you can delete all archived
WAL segments with names numerically less. Keep in mind that only
completed WAL segment files are archived, so there will be delay
between running <function>pg_stop_backup</> and the archiving of
all WAL segment files needed to make the file system backup
consistent.
</para>
<para>
The backup history file is just a small text file. It contains the
label string you gave to <function>pg_start_backup</>, as well as
the starting and ending times of the backup. If you used the label
to identify where the associated dump file is kept, then the
archived history file is enough to tell you which dump file to
restore, should you need to do so.
</para>
<para>
...
...
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