@@ -472,7 +472,7 @@ tar -cf backup.tar /usr/local/pgsql/data
472472
473473 <para>
474474 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 /</>
476476 subdirectory of the cluster's data directory. The log records
477477 every change made to the database's data files. This log exists
478478 primarily for crash-safety purposes: if the system crashes, the
@@ -616,7 +616,7 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
616616 <literal>%p</> and <literal>%f</> parameters have been replaced,
617617 the actual command executed might look like this:
618618<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
620620</programlisting>
621621 A similar command will be generated for each new file to be archived.
622622 </para>
@@ -668,9 +668,9 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
668668 fills, nothing further can be archived until the tape is swapped.
669669 You should ensure that any error condition or request to a human operator
670670 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
672672 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,
674674 <productname>PostgreSQL</> will do a PANIC shutdown. No committed
675675 transactions will be lost, but the database will remain offline until
676676 you free some space.)
@@ -682,7 +682,7 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
682682 operation continues even if the archiving process falls a little behind.
683683 If archiving falls significantly behind, this will increase the amount of
684684 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
686686 not-yet-archived segment files, which could eventually exceed available
687687 disk space. You are advised to monitor the archiving process to ensure that
688688 it is working as you intend.
@@ -743,7 +743,7 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_xlog/
743743 configuration file reload. If you wish to temporarily stop archiving,
744744 one way to do it is to set <varname>archive_command</> to the empty
745745 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
747747 working <varname>archive_command</> is re-established.
748748 </para>
749749 </sect2>
@@ -1062,10 +1062,10 @@ SELECT pg_stop_backup();
10621062
10631063 <para>
10641064 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
10661066 slight adjustment is worthwhile because it reduces the risk
10671067 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
10691069 the cluster directory, which is a common setup anyway for performance
10701070 reasons. You might also want to exclude <filename>postmaster.pid</>
10711071 and <filename>postmaster.opts</>, which record information
@@ -1149,7 +1149,7 @@ SELECT pg_stop_backup();
11491149 location in case you need them later. Note that this precaution will
11501150 require that you have enough free space on your system to hold two
11511151 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 </>
11531153 subdirectory, as it might contain logs which
11541154 were not archived before the system went down.
11551155 </para>
@@ -1172,9 +1172,9 @@ SELECT pg_stop_backup();
11721172 </listitem>
11731173 <listitem>
11741174 <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
11761176 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
11781178 it with proper permissions,
11791179 being careful to ensure that you re-establish it as a symbolic link
11801180 if you had it set up that way before.
@@ -1183,7 +1183,7 @@ SELECT pg_stop_backup();
11831183 <listitem>
11841184 <para>
11851185 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,
11871187 not move them, so you still have the unmodified files if a
11881188 problem occurs and you have to start over.)
11891189 </para>
@@ -1265,9 +1265,9 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
12651265
12661266 <para>
12671267 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.
12691269 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 /</>.
12711271 </para>
12721272
12731273 <para>
0 commit comments