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

Commitc1a7f64

Browse files
committed
Replace "transaction log" with "write-ahead log"
This makes documentation and error messages match the renaming of "xlog"to "wal" in APIs and file naming.
1 parent56b6ef8 commitc1a7f64

34 files changed

+157
-160
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
14241424
As with base backups, the easiest way to produce a standalone
14251425
hot backup is to use the <xref linkend="app-pgbasebackup">
14261426
tool. If you include the <literal>-X</> parameter when calling
1427-
it, all thetransaction log required to use the backup will be
1427+
it, all thewrite-ahead log required to use the backup will be
14281428
included in the backup automatically, and no special action is
14291429
required to restore the backup.
14301430
</para>

‎doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
33123312
to the primary or upstream standby, where it can be seen using the
33133313
<link linkend="monitoring-stats-views-table">
33143314
<literal>pg_stat_replication</></link> view. The standby will report
3315-
the lasttransaction log position it has written, the last position it
3315+
the lastwrite-ahead log position it has written, the last position it
33163316
has flushed to disk, and the last position it has applied.
33173317
This parameter's
33183318
value is the maximum interval, in seconds, between reports. Updates are

‎doc/src/sgml/func.sgml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18466,21 +18466,21 @@ SELECT set_config('log_statement_stats', 'off', false);
1846618466
<literal><function>pg_current_wal_flush_lsn()</function></literal>
1846718467
</entry>
1846818468
<entry><type>pg_lsn</type></entry>
18469-
<entry>Get currenttransaction log flush location</entry>
18469+
<entry>Get currentwrite-ahead log flush location</entry>
1847018470
</row>
1847118471
<row>
1847218472
<entry>
1847318473
<literal><function>pg_current_wal_insert_lsn()</function></literal>
1847418474
</entry>
1847518475
<entry><type>pg_lsn</type></entry>
18476-
<entry>Get currenttransaction log insert location</entry>
18476+
<entry>Get currentwrite-ahead log insert location</entry>
1847718477
</row>
1847818478
<row>
1847918479
<entry>
1848018480
<literal><function>pg_current_wal_lsn()</function></literal>
1848118481
</entry>
1848218482
<entry><type>pg_lsn</type></entry>
18483-
<entry>Get currenttransaction log write location</entry>
18483+
<entry>Get currentwrite-ahead log write location</entry>
1848418484
</row>
1848518485
<row>
1848618486
<entry>
@@ -18522,28 +18522,28 @@ SELECT set_config('log_statement_stats', 'off', false);
1852218522
<literal><function>pg_switch_wal()</function></literal>
1852318523
</entry>
1852418524
<entry><type>pg_lsn</type></entry>
18525-
<entry>Force switch to a newtransaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)</entry>
18525+
<entry>Force switch to a newwrite-ahead log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)</entry>
1852618526
</row>
1852718527
<row>
1852818528
<entry>
1852918529
<literal><function>pg_walfile_name(<parameter>lsn</> <type>pg_lsn</>)</function></literal>
1853018530
</entry>
1853118531
<entry><type>text</type></entry>
18532-
<entry>Converttransaction log location to file name</entry>
18532+
<entry>Convertwrite-ahead log location to file name</entry>
1853318533
</row>
1853418534
<row>
1853518535
<entry>
1853618536
<literal><function>pg_walfile_name_offset(<parameter>lsn</> <type>pg_lsn</>)</function></literal>
1853718537
</entry>
1853818538
<entry><type>text</>, <type>integer</></entry>
18539-
<entry>Converttransaction log location to file name and decimal byte offset within file</entry>
18539+
<entry>Convertwrite-ahead log location to file name and decimal byte offset within file</entry>
1854018540
</row>
1854118541
<row>
1854218542
<entry>
1854318543
<literal><function>pg_wal_lsn_diff(<parameter>lsn</> <type>pg_lsn</>, <parameter>lsn</> <type>pg_lsn</>)</function></literal>
1854418544
</entry>
1854518545
<entry><type>numeric</></entry>
18546-
<entry>Calculate the difference between twotransaction log locations</entry>
18546+
<entry>Calculate the difference between twowrite-ahead log locations</entry>
1854718547
</row>
1854818548
</tbody>
1854918549
</tgroup>
@@ -18556,7 +18556,7 @@ SELECT set_config('log_statement_stats', 'off', false);
1855618556
backup label file (<filename>backup_label</>) and, if there are any links
1855718557
in the <filename>pg_tblspc/</> directory, a tablespace map file
1855818558
(<filename>tablespace_map</>) into the database cluster's data directory,
18559-
performs a checkpoint, and then returns the backup's startingtransaction
18559+
performs a checkpoint, and then returns the backup's startingwrite-ahead
1856018560
log location as text. The user can ignore this result value, but it is
1856118561
provided in case it is useful. When used in non-exclusive mode, the
1856218562
contents of these files are instead returned by the
@@ -18592,55 +18592,55 @@ postgres=# select pg_start_backup('label_goes_here');
1859218592
</para>
1859318593

1859418594
<para>
18595-
The function also creates a backup history file in thetransaction log
18595+
The function also creates a backup history file in thewrite-ahead log
1859618596
archive area. The history file includes the label given to
18597-
<function>pg_start_backup</>, the starting and endingtransaction log locations for
18597+
<function>pg_start_backup</>, the starting and endingwrite-ahead log locations for
1859818598
the backup, and the starting and ending times of the backup. The return
18599-
value is the backup's endingtransaction log location (which again
18599+
value is the backup's endingwrite-ahead log location (which again
1860018600
can be ignored). After recording the ending location, the current
18601-
transaction log insertion
18602-
point is automatically advanced to the nexttransaction log file, so that the
18603-
endingtransaction log file can be archived immediately to complete the backup.
18601+
write-ahead log insertion
18602+
point is automatically advanced to the nextwrite-ahead log file, so that the
18603+
endingwrite-ahead log file can be archived immediately to complete the backup.
1860418604
</para>
1860518605

1860618606
<para>
18607-
<function>pg_switch_wal</> moves to the nexttransaction log file, allowing the
18607+
<function>pg_switch_wal</> moves to the nextwrite-ahead log file, allowing the
1860818608
current file to be archived (assuming you are using continuous archiving).
18609-
The return value is the endingtransaction log location + 1 within the just-completedtransaction log file.
18610-
If there has been notransaction log activity since the lasttransaction log switch,
18609+
The return value is the endingwrite-ahead log location + 1 within the just-completedwrite-ahead log file.
18610+
If there has been nowrite-ahead log activity since the lastwrite-ahead log switch,
1861118611
<function>pg_switch_wal</> does nothing and returns the start location
18612-
of thetransaction log file currently in use.
18612+
of thewrite-ahead log file currently in use.
1861318613
</para>
1861418614

1861518615
<para>
18616-
<function>pg_create_restore_point</> creates a namedtransaction log
18616+
<function>pg_create_restore_point</> creates a namedwrite-ahead log
1861718617
record that can be used as recovery target, and returns the corresponding
18618-
transaction log location. The given name can then be used with
18618+
write-ahead log location. The given name can then be used with
1861918619
<xref linkend="recovery-target-name"> to specify the point up to which
1862018620
recovery will proceed. Avoid creating multiple restore points with the
1862118621
same name, since recovery will stop at the first one whose name matches
1862218622
the recovery target.
1862318623
</para>
1862418624

1862518625
<para>
18626-
<function>pg_current_wal_lsn</> displays the currenttransaction log write
18626+
<function>pg_current_wal_lsn</> displays the currentwrite-ahead log write
1862718627
location in the same format used by the above functions. Similarly,
18628-
<function>pg_current_wal_insert_lsn</> displays the currenttransaction log
18628+
<function>pg_current_wal_insert_lsn</> displays the currentwrite-ahead log
1862918629
insertion location and <function>pg_current_wal_flush_lsn</> displays the
18630-
currenttransaction log flush location. The insertion location is the <quote>logical</>
18630+
currentwrite-ahead log flush location. The insertion location is the <quote>logical</>
1863118631
end of the transaction log at any instant, while the write location is the end of
1863218632
what has actually been written out from the server's internal buffers and flush
1863318633
location is the location guaranteed to be written to durable storage. The write
1863418634
location is the end of what can be examined from outside the server, and is usually
18635-
what you want if you are interested in archiving partially-completetransaction log
18635+
what you want if you are interested in archiving partially-completewrite-ahead log
1863618636
files. The insertion and flush locations are made available primarily for server
1863718637
debugging purposes. These are both read-only operations and do not
1863818638
require superuser permissions.
1863918639
</para>
1864018640

1864118641
<para>
1864218642
You can use <function>pg_walfile_name_offset</> to extract the
18643-
correspondingtransaction log file name and byte offset from the results of any of the
18643+
correspondingwrite-ahead log file name and byte offset from the results of any of the
1864418644
above functions. For example:
1864518645
<programlisting>
1864618646
postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
@@ -18649,17 +18649,17 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
1864918649
00000001000000000000000D | 4039624
1865018650
(1 row)
1865118651
</programlisting>
18652-
Similarly, <function>pg_walfile_name</> extracts just thetransaction log file name.
18653-
When the giventransaction log location is exactly at atransaction log file boundary, both
18654-
these functions return the name of the precedingtransaction log file.
18655-
This is usually the desired behavior for managingtransaction log archiving
18652+
Similarly, <function>pg_walfile_name</> extracts just thewrite-ahead log file name.
18653+
When the givenwrite-ahead log location is exactly at awrite-ahead log file boundary, both
18654+
these functions return the name of the precedingwrite-ahead log file.
18655+
This is usually the desired behavior for managingwrite-ahead log archiving
1865618656
behavior, since the preceding file is the last one that currently
1865718657
needs to be archived.
1865818658
</para>
1865918659

1866018660
<para>
1866118661
<function>pg_wal_lsn_diff</> calculates the difference in bytes
18662-
between twotransaction log locations. It can be used with
18662+
between twowrite-ahead log locations. It can be used with
1866318663
<structname>pg_stat_replication</structname> or some functions shown in
1866418664
<xref linkend="functions-admin-backup-table"> to get the replication lag.
1866518665
</para>
@@ -18716,7 +18716,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
1871618716
<literal><function>pg_last_wal_receive_lsn()</function></literal>
1871718717
</entry>
1871818718
<entry><type>pg_lsn</type></entry>
18719-
<entry>Get lasttransaction log location received and synced to disk by
18719+
<entry>Get lastwrite-ahead log location received and synced to disk by
1872018720
streaming replication. While streaming replication is in progress
1872118721
this will increase monotonically. If recovery has completed this will
1872218722
remain static at
@@ -18730,7 +18730,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
1873018730
<literal><function>pg_last_wal_replay_lsn()</function></literal>
1873118731
</entry>
1873218732
<entry><type>pg_lsn</type></entry>
18733-
<entry>Get lasttransaction log location replayed during recovery.
18733+
<entry>Get lastwrite-ahead log location replayed during recovery.
1873418734
If recovery is still in progress this will increase monotonically.
1873518735
If recovery has completed then this value will remain static at
1873618736
the value of the last WAL record applied during that recovery.

‎doc/src/sgml/high-availability.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protocol to make nodes agree on a serializable transactional order.
138138
</varlistentry>
139139

140140
<varlistentry>
141-
<term>Transaction Log Shipping</term>
141+
<term>Write-Ahead Log Shipping</term>
142142
<listitem>
143143

144144
<para>
@@ -289,7 +289,7 @@ protocol to make nodes agree on a serializable transactional order.
289289
<entry>Feature</entry>
290290
<entry>Shared Disk Failover</entry>
291291
<entry>File System Replication</entry>
292-
<entry>Transaction Log Shipping</entry>
292+
<entry>Write-Ahead Log Shipping</entry>
293293
<entry>Trigger-Based Master-Standby Replication</entry>
294294
<entry>Statement-Based Replication Middleware</entry>
295295
<entry>Asynchronous Multimaster Replication</entry>
@@ -1036,7 +1036,7 @@ primary_slot_name = 'node_a_slot'
10361036
<para>
10371037
When requesting synchronous replication, each commit of a
10381038
write transaction will wait until confirmation is
1039-
received that the commit has been written to thetransaction log on disk
1039+
received that the commit has been written to thewrite-ahead log on disk
10401040
of both the primary and standby server. The only possibility that data
10411041
can be lost is if both the primary and the standby suffer crashes at the
10421042
same time. This can provide a much higher level of durability, though only

‎doc/src/sgml/monitoring.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
10321032
</row>
10331033
<row>
10341034
<entry><literal>CLogTruncationLock</></entry>
1035-
<entry>Waiting to truncate thetransaction log or waiting fortransaction log truncation to finish.</entry>
1035+
<entry>Waiting to truncate thewrite-ahead log or waiting forwrite-ahead log truncation to finish.</entry>
10361036
</row>
10371037
<row>
10381038
<entry><literal>clog</></entry>
@@ -1701,24 +1701,24 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
17011701
<row>
17021702
<entry><structfield>sent_lsn</></entry>
17031703
<entry><type>pg_lsn</></entry>
1704-
<entry>Lasttransaction log location sent on this connection</entry>
1704+
<entry>Lastwrite-ahead log location sent on this connection</entry>
17051705
</row>
17061706
<row>
17071707
<entry><structfield>write_lsn</></entry>
17081708
<entry><type>pg_lsn</></entry>
1709-
<entry>Lasttransaction log location written to disk by this standby
1709+
<entry>Lastwrite-ahead log location written to disk by this standby
17101710
server</entry>
17111711
</row>
17121712
<row>
17131713
<entry><structfield>flush_lsn</></entry>
17141714
<entry><type>pg_lsn</></entry>
1715-
<entry>Lasttransaction log location flushed to disk by this standby
1715+
<entry>Lastwrite-ahead log location flushed to disk by this standby
17161716
server</entry>
17171717
</row>
17181718
<row>
17191719
<entry><structfield>replay_lsn</></entry>
17201720
<entry><type>pg_lsn</></entry>
1721-
<entry>Lasttransaction log location replayed into the database on this
1721+
<entry>Lastwrite-ahead log location replayed into the database on this
17221722
standby server</entry>
17231723
</row>
17241724
<row>
@@ -1865,7 +1865,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
18651865
<row>
18661866
<entry><structfield>receive_start_lsn</></entry>
18671867
<entry><type>pg_lsn</></entry>
1868-
<entry>Firsttransaction log position used when WAL receiver is
1868+
<entry>Firstwrite-ahead log position used when WAL receiver is
18691869
started</entry>
18701870
</row>
18711871
<row>
@@ -1876,14 +1876,14 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
18761876
<row>
18771877
<entry><structfield>received_lsn</></entry>
18781878
<entry><type>pg_lsn</></entry>
1879-
<entry>Lasttransaction log position already received and flushed to
1879+
<entry>Lastwrite-ahead log position already received and flushed to
18801880
disk, the initial value of this field being the first log position used
18811881
when WAL receiver is started</entry>
18821882
</row>
18831883
<row>
18841884
<entry><structfield>received_tli</></entry>
18851885
<entry><type>integer</></entry>
1886-
<entry>Timeline number of lasttransaction log position received and
1886+
<entry>Timeline number of lastwrite-ahead log position received and
18871887
flushed to disk, the initial value of this field being the timeline
18881888
number of the first log position used when WAL receiver is started
18891889
</entry>
@@ -1901,12 +1901,12 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
19011901
<row>
19021902
<entry><structfield>latest_end_lsn</></entry>
19031903
<entry><type>pg_lsn</></entry>
1904-
<entry>Lasttransaction log position reported to origin WAL sender</entry>
1904+
<entry>Lastwrite-ahead log position reported to origin WAL sender</entry>
19051905
</row>
19061906
<row>
19071907
<entry><structfield>latest_end_time</></entry>
19081908
<entry><type>timestamp with time zone</></entry>
1909-
<entry>Time of lasttransaction log position reported to origin WAL sender</entry>
1909+
<entry>Time of lastwrite-ahead log position reported to origin WAL sender</entry>
19101910
</row>
19111911
<row>
19121912
<entry><structfield>slot_name</></entry>
@@ -1967,7 +1967,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
19671967
<row>
19681968
<entry><structfield>received_lsn</></entry>
19691969
<entry><type>pg_lsn</></entry>
1970-
<entry>Lasttransaction log position received, the initial value of
1970+
<entry>Lastwrite-ahead log position received, the initial value of
19711971
this field being 0</entry>
19721972
</row>
19731973
<row>
@@ -1984,13 +1984,13 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
19841984
<row>
19851985
<entry><structfield>latest_end_lsn</></entry>
19861986
<entry><type>pg_lsn</></entry>
1987-
<entry>Lasttransaction log position reported to origin WAL sender
1987+
<entry>Lastwrite-ahead log position reported to origin WAL sender
19881988
</entry>
19891989
</row>
19901990
<row>
19911991
<entry><structfield>latest_end_time</></entry>
19921992
<entry><type>timestamp with time zone</></entry>
1993-
<entry>Time of lasttransaction log position reported to origin WAL
1993+
<entry>Time of lastwrite-ahead log position reported to origin WAL
19941994
sender</entry>
19951995
</row>
19961996
</tbody>

‎doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ The commands accepted in walsender mode are:
15471547
<listitem>
15481548
<para>
15491549
Current WAL flush location. Useful to get a known location in the
1550-
transaction log where streaming can start.
1550+
write-ahead log where streaming can start.
15511551
</para>
15521552
</listitem>
15531553
</varlistentry>

‎doc/src/sgml/recovery-config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
242242
</term>
243243
<listitem>
244244
<para>
245-
This parameter specifies the LSN of thetransaction log location up
245+
This parameter specifies the LSN of thewrite-ahead log location up
246246
to which recovery will proceed. The precise stopping point is also
247247
influenced by <xref linkend="recovery-target-inclusive">. This
248248
parameter is parsed using the system data type

‎doc/src/sgml/ref/checkpoint.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<refnamediv>
1515
<refname>CHECKPOINT</refname>
16-
<refpurpose>force atransaction log checkpoint</refpurpose>
16+
<refpurpose>force awrite-ahead log checkpoint</refpurpose>
1717
</refnamediv>
1818

1919
<refsynopsisdiv>
@@ -26,7 +26,7 @@ CHECKPOINT
2626
<title>Description</title>
2727

2828
<para>
29-
A checkpoint is a point in thetransaction log sequence at which
29+
A checkpoint is a point in thewrite-ahead log sequence at which
3030
all data files have been updated to reflect the information in the
3131
log. All data files will be flushed to disk. Refer to
3232
<xref linkend="wal-configuration"> for more details about what happens

‎doc/src/sgml/ref/initdb.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ PostgreSQL documentation
320320
<term><option>--waldir=<replaceable class="parameter">directory</replaceable></option></term>
321321
<listitem>
322322
<para>
323-
This option specifies the directory where thetransaction log
323+
This option specifies the directory where thewrite-ahead log
324324
should be stored.
325325
</para>
326326
</listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp