@@ -472,7 +472,7 @@ tar -cf backup.tar /usr/local/pgsql/data
472
472
473
473
<para>
474
474
At all times, <productname>PostgreSQL</> maintains a
475
- <firstterm>write ahead log</> (WAL) in the <filename>pg_xlog /</>
475
+ <firstterm>write ahead log</> (WAL) in the <filename>pg_wal /</>
476
476
subdirectory of the cluster's data directory. The log records
477
477
every change made to the database's data files. This log exists
478
478
primarily for crash-safety purposes: if the system crashes, the
@@ -616,7 +616,7 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
616
616
<literal>%p</> and <literal>%f</> parameters have been replaced,
617
617
the actual command executed might look like this:
618
618
<programlisting>
619
- test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog /00000001000000A900000065 /mnt/server/archivedir/00000001000000A900000065
619
+ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_wal /00000001000000A900000065 /mnt/server/archivedir/00000001000000A900000065
620
620
</programlisting>
621
621
A similar command will be generated for each new file to be archived.
622
622
</para>
@@ -668,9 +668,9 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
668
668
fills, nothing further can be archived until the tape is swapped.
669
669
You should ensure that any error condition or request to a human operator
670
670
is reported appropriately so that the situation can be
671
- resolved reasonably quickly. The <filename>pg_xlog /</> directory will
671
+ resolved reasonably quickly. The <filename>pg_wal /</> directory will
672
672
continue to fill with WAL segment files until the situation is resolved.
673
- (If the file system containing <filename>pg_xlog /</> fills up,
673
+ (If the file system containing <filename>pg_wal /</> fills up,
674
674
<productname>PostgreSQL</> will do a PANIC shutdown. No committed
675
675
transactions will be lost, but the database will remain offline until
676
676
you free some space.)
@@ -682,7 +682,7 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
682
682
operation continues even if the archiving process falls a little behind.
683
683
If archiving falls significantly behind, this will increase the amount of
684
684
data that would be lost in the event of a disaster. It will also mean that
685
- the <filename>pg_xlog /</> directory will contain large numbers of
685
+ the <filename>pg_wal /</> directory will contain large numbers of
686
686
not-yet-archived segment files, which could eventually exceed available
687
687
disk space. You are advised to monitor the archiving process to ensure that
688
688
it is working as you intend.
@@ -743,7 +743,7 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
743
743
configuration file reload. If you wish to temporarily stop archiving,
744
744
one way to do it is to set <varname>archive_command</> to the empty
745
745
string (<literal>''</>).
746
- This will cause WAL files to accumulate in <filename>pg_xlog /</> until a
746
+ This will cause WAL files to accumulate in <filename>pg_wal /</> until a
747
747
working <varname>archive_command</> is re-established.
748
748
</para>
749
749
</sect2>
@@ -1062,10 +1062,10 @@ SELECT pg_stop_backup();
1062
1062
1063
1063
<para>
1064
1064
You should, however, omit from the backup the files within the
1065
- cluster's <filename>pg_xlog /</> subdirectory. This
1065
+ cluster's <filename>pg_wal /</> subdirectory. This
1066
1066
slight adjustment is worthwhile because it reduces the risk
1067
1067
of mistakes when restoring. This is easy to arrange if
1068
- <filename>pg_xlog /</> is a symbolic link pointing to someplace outside
1068
+ <filename>pg_wal /</> is a symbolic link pointing to someplace outside
1069
1069
the cluster directory, which is a common setup anyway for performance
1070
1070
reasons. You might also want to exclude <filename>postmaster.pid</>
1071
1071
and <filename>postmaster.opts</>, which record information
@@ -1149,7 +1149,7 @@ SELECT pg_stop_backup();
1149
1149
location in case you need them later. Note that this precaution will
1150
1150
require that you have enough free space on your system to hold two
1151
1151
copies of your existing database. If you do not have enough space,
1152
- you should at least save the contents of the cluster's <filename>pg_xlog </>
1152
+ you should at least save the contents of the cluster's <filename>pg_wal </>
1153
1153
subdirectory, as it might contain logs which
1154
1154
were not archived before the system went down.
1155
1155
</para>
@@ -1172,9 +1172,9 @@ SELECT pg_stop_backup();
1172
1172
</listitem>
1173
1173
<listitem>
1174
1174
<para>
1175
- Remove any files present in <filename>pg_xlog /</>; these came from the
1175
+ Remove any files present in <filename>pg_wal /</>; these came from the
1176
1176
file system backup and are therefore probably obsolete rather than current.
1177
- If you didn't archive <filename>pg_xlog /</> at all, then recreate
1177
+ If you didn't archive <filename>pg_wal /</> at all, then recreate
1178
1178
it with proper permissions,
1179
1179
being careful to ensure that you re-establish it as a symbolic link
1180
1180
if you had it set up that way before.
@@ -1183,7 +1183,7 @@ SELECT pg_stop_backup();
1183
1183
<listitem>
1184
1184
<para>
1185
1185
If you have unarchived WAL segment files that you saved in step 2,
1186
- copy them into <filename>pg_xlog /</>. (It is best to copy them,
1186
+ copy them into <filename>pg_wal /</>. (It is best to copy them,
1187
1187
not move them, so you still have the unmodified files if a
1188
1188
problem occurs and you have to start over.)
1189
1189
</para>
@@ -1265,9 +1265,9 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
1265
1265
1266
1266
<para>
1267
1267
WAL segments that cannot be found in the archive will be sought in
1268
- <filename>pg_xlog /</>; this allows use of recent un-archived segments.
1268
+ <filename>pg_wal /</>; this allows use of recent un-archived segments.
1269
1269
However, segments that are available from the archive will be used in
1270
- preference to files in <filename>pg_xlog /</>.
1270
+ preference to files in <filename>pg_wal /</>.
1271
1271
</para>
1272
1272
1273
1273
<para>
0 commit comments