@@ -17952,13 +17952,13 @@ SELECT set_config('log_statement_stats', 'off', false);
1795217952 <primary>pg_create_restore_point</primary>
1795317953 </indexterm>
1795417954 <indexterm>
17955- <primary>pg_current_xlog_flush_location </primary>
17955+ <primary>pg_current_wal_flush_location </primary>
1795617956 </indexterm>
1795717957 <indexterm>
17958- <primary>pg_current_xlog_insert_location </primary>
17958+ <primary>pg_current_wal_insert_location </primary>
1795917959 </indexterm>
1796017960 <indexterm>
17961- <primary>pg_current_xlog_location </primary>
17961+ <primary>pg_current_wal_location </primary>
1796217962 </indexterm>
1796317963 <indexterm>
1796417964 <primary>pg_start_backup</primary>
@@ -17973,24 +17973,24 @@ SELECT set_config('log_statement_stats', 'off', false);
1797317973 <primary>pg_backup_start_time</primary>
1797417974 </indexterm>
1797517975 <indexterm>
17976- <primary>pg_switch_xlog </primary>
17976+ <primary>pg_switch_wal </primary>
1797717977 </indexterm>
1797817978 <indexterm>
17979- <primary>pg_xlogfile_name </primary>
17979+ <primary>pg_walfile_name </primary>
1798017980 </indexterm>
1798117981 <indexterm>
17982- <primary>pg_xlogfile_name_offset </primary>
17982+ <primary>pg_walfile_name_offset </primary>
1798317983 </indexterm>
1798417984 <indexterm>
17985- <primary>pg_xlog_location_diff </primary>
17985+ <primary>pg_wal_location_diff </primary>
1798617986 </indexterm>
1798717987
1798817988 <para>
1798917989 The functions shown in <xref
1799017990 linkend="functions-admin-backup-table"> assist in making on-line backups.
1799117991 These functions cannot be executed during recovery (except
1799217992 <function>pg_is_in_backup</function>, <function>pg_backup_start_time</function>
17993- and <function>pg_xlog_location_diff </function>).
17993+ and <function>pg_wal_location_diff </function>).
1799417994 </para>
1799517995
1799617996 <table id="functions-admin-backup-table">
@@ -18011,21 +18011,21 @@ SELECT set_config('log_statement_stats', 'off', false);
1801118011 </row>
1801218012 <row>
1801318013 <entry>
18014- <literal><function>pg_current_xlog_flush_location ()</function></literal>
18014+ <literal><function>pg_current_wal_flush_location ()</function></literal>
1801518015 </entry>
1801618016 <entry><type>pg_lsn</type></entry>
1801718017 <entry>Get current transaction log flush location</entry>
1801818018 </row>
1801918019 <row>
1802018020 <entry>
18021- <literal><function>pg_current_xlog_insert_location ()</function></literal>
18021+ <literal><function>pg_current_wal_insert_location ()</function></literal>
1802218022 </entry>
1802318023 <entry><type>pg_lsn</type></entry>
1802418024 <entry>Get current transaction log insert location</entry>
1802518025 </row>
1802618026 <row>
1802718027 <entry>
18028- <literal><function>pg_current_xlog_location ()</function></literal>
18028+ <literal><function>pg_current_wal_location ()</function></literal>
1802918029 </entry>
1803018030 <entry><type>pg_lsn</type></entry>
1803118031 <entry>Get current transaction log write location</entry>
@@ -18067,28 +18067,28 @@ SELECT set_config('log_statement_stats', 'off', false);
1806718067 </row>
1806818068 <row>
1806918069 <entry>
18070- <literal><function>pg_switch_xlog ()</function></literal>
18070+ <literal><function>pg_switch_wal ()</function></literal>
1807118071 </entry>
1807218072 <entry><type>pg_lsn</type></entry>
1807318073 <entry>Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)</entry>
1807418074 </row>
1807518075 <row>
1807618076 <entry>
18077- <literal><function>pg_xlogfile_name (<parameter>location</> <type>pg_lsn</>)</function></literal>
18077+ <literal><function>pg_walfile_name (<parameter>location</> <type>pg_lsn</>)</function></literal>
1807818078 </entry>
1807918079 <entry><type>text</type></entry>
1808018080 <entry>Convert transaction log location string to file name</entry>
1808118081 </row>
1808218082 <row>
1808318083 <entry>
18084- <literal><function>pg_xlogfile_name_offset (<parameter>location</> <type>pg_lsn</>)</function></literal>
18084+ <literal><function>pg_walfile_name_offset (<parameter>location</> <type>pg_lsn</>)</function></literal>
1808518085 </entry>
1808618086 <entry><type>text</>, <type>integer</></entry>
1808718087 <entry>Convert transaction log location string to file name and decimal byte offset within file</entry>
1808818088 </row>
1808918089 <row>
1809018090 <entry>
18091- <literal><function>pg_xlog_location_diff (<parameter>location</> <type>pg_lsn</>, <parameter>location</> <type>pg_lsn</>)</function></literal>
18091+ <literal><function>pg_wal_location_diff (<parameter>location</> <type>pg_lsn</>, <parameter>location</> <type>pg_lsn</>)</function></literal>
1809218092 </entry>
1809318093 <entry><type>numeric</></entry>
1809418094 <entry>Calculate the difference between two transaction log locations</entry>
@@ -18146,11 +18146,11 @@ postgres=# select pg_start_backup('label_goes_here');
1814618146 </para>
1814718147
1814818148 <para>
18149- <function>pg_switch_xlog </> moves to the next transaction log file, allowing the
18149+ <function>pg_switch_wal </> moves to the next transaction log file, allowing the
1815018150 current file to be archived (assuming you are using continuous archiving).
1815118151 The return value is the ending transaction log location + 1 within the just-completed transaction log file.
1815218152 If there has been no transaction log activity since the last transaction log switch,
18153- <function>pg_switch_xlog </> does nothing and returns the start location
18153+ <function>pg_switch_wal </> does nothing and returns the start location
1815418154 of the transaction log file currently in use.
1815518155 </para>
1815618156
@@ -18165,10 +18165,10 @@ postgres=# select pg_start_backup('label_goes_here');
1816518165 </para>
1816618166
1816718167 <para>
18168- <function>pg_current_xlog_location </> displays the current transaction log write
18168+ <function>pg_current_wal_location </> displays the current transaction log write
1816918169 location in the same format used by the above functions. Similarly,
18170- <function>pg_current_xlog_insert_location </> displays the current transaction log
18171- insertion point and <function>pg_current_xlog_flush_location </> displays the
18170+ <function>pg_current_wal_insert_location </> displays the current transaction log
18171+ insertion point and <function>pg_current_wal_flush_location </> displays the
1817218172 current transaction log flush point. The insertion point is the <quote>logical</>
1817318173 end of the transaction log at any instant, while the write location is the end of
1817418174 what has actually been written out from the server's internal buffers and flush
@@ -18181,17 +18181,17 @@ postgres=# select pg_start_backup('label_goes_here');
1818118181 </para>
1818218182
1818318183 <para>
18184- You can use <function>pg_xlogfile_name_offset </> to extract the
18184+ You can use <function>pg_walfile_name_offset </> to extract the
1818518185 corresponding transaction log file name and byte offset from the results of any of the
1818618186 above functions. For example:
1818718187<programlisting>
18188- postgres=# SELECT * FROM pg_xlogfile_name_offset (pg_stop_backup());
18188+ postgres=# SELECT * FROM pg_walfile_name_offset (pg_stop_backup());
1818918189 file_name | file_offset
1819018190--------------------------+-------------
1819118191 00000001000000000000000D | 4039624
1819218192(1 row)
1819318193</programlisting>
18194- Similarly, <function>pg_xlogfile_name </> extracts just the transaction log file name.
18194+ Similarly, <function>pg_walfile_name </> extracts just the transaction log file name.
1819518195 When the given transaction log location is exactly at a transaction log file boundary, both
1819618196 these functions return the name of the preceding transaction log file.
1819718197 This is usually the desired behavior for managing transaction log archiving
@@ -18200,7 +18200,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1820018200 </para>
1820118201
1820218202 <para>
18203- <function>pg_xlog_location_diff </> calculates the difference in bytes
18203+ <function>pg_wal_location_diff </> calculates the difference in bytes
1820418204 between two transaction log locations. It can be used with
1820518205 <structname>pg_stat_replication</structname> or some functions shown in
1820618206 <xref linkend="functions-admin-backup-table"> to get the replication lag.
@@ -18220,10 +18220,10 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1822018220 <primary>pg_is_in_recovery</primary>
1822118221 </indexterm>
1822218222 <indexterm>
18223- <primary>pg_last_xlog_receive_location </primary>
18223+ <primary>pg_last_wal_receive_location </primary>
1822418224 </indexterm>
1822518225 <indexterm>
18226- <primary>pg_last_xlog_replay_location </primary>
18226+ <primary>pg_last_wal_replay_location </primary>
1822718227 </indexterm>
1822818228 <indexterm>
1822918229 <primary>pg_last_xact_replay_timestamp</primary>
@@ -18255,7 +18255,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1825518255 </row>
1825618256 <row>
1825718257 <entry>
18258- <literal><function>pg_last_xlog_receive_location ()</function></literal>
18258+ <literal><function>pg_last_wal_receive_location ()</function></literal>
1825918259 </entry>
1826018260 <entry><type>pg_lsn</type></entry>
1826118261 <entry>Get last transaction log location received and synced to disk by
@@ -18269,7 +18269,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1826918269 </row>
1827018270 <row>
1827118271 <entry>
18272- <literal><function>pg_last_xlog_replay_location ()</function></literal>
18272+ <literal><function>pg_last_wal_replay_location ()</function></literal>
1827318273 </entry>
1827418274 <entry><type>pg_lsn</type></entry>
1827518275 <entry>Get last transaction log location replayed during recovery.
@@ -18301,13 +18301,13 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1830118301 </table>
1830218302
1830318303 <indexterm>
18304- <primary>pg_is_xlog_replay_paused </primary>
18304+ <primary>pg_is_wal_replay_paused </primary>
1830518305 </indexterm>
1830618306 <indexterm>
18307- <primary>pg_xlog_replay_pause </primary>
18307+ <primary>pg_wal_replay_pause </primary>
1830818308 </indexterm>
1830918309 <indexterm>
18310- <primary>pg_xlog_replay_resume </primary>
18310+ <primary>pg_wal_replay_resume </primary>
1831118311 </indexterm>
1831218312
1831318313 <para>
@@ -18327,23 +18327,23 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1832718327 <tbody>
1832818328 <row>
1832918329 <entry>
18330- <literal><function>pg_is_xlog_replay_paused ()</function></literal>
18330+ <literal><function>pg_is_wal_replay_paused ()</function></literal>
1833118331 </entry>
1833218332 <entry><type>bool</type></entry>
1833318333 <entry>True if recovery is paused.
1833418334 </entry>
1833518335 </row>
1833618336 <row>
1833718337 <entry>
18338- <literal><function>pg_xlog_replay_pause ()</function></literal>
18338+ <literal><function>pg_wal_replay_pause ()</function></literal>
1833918339 </entry>
1834018340 <entry><type>void</type></entry>
1834118341 <entry>Pauses recovery immediately (restricted to superusers by default, but other users can be granted EXECUTE to run the function).
1834218342 </entry>
1834318343 </row>
1834418344 <row>
1834518345 <entry>
18346- <literal><function>pg_xlog_replay_resume ()</function></literal>
18346+ <literal><function>pg_wal_replay_resume ()</function></literal>
1834718347 </entry>
1834818348 <entry><type>void</type></entry>
1834918349 <entry>Restarts recovery if it was paused (restricted to superusers by default, but other users can be granted EXECUTE to run the function).
@@ -18492,7 +18492,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1849218492 <literal><function>pg_create_physical_replication_slot(<parameter>slot_name</parameter> <type>name</type> <optional>, <parameter>immediately_reserve</> <type>boolean</>, <parameter>temporary</> <type>boolean</></optional>)</function></literal>
1849318493 </entry>
1849418494 <entry>
18495- (<parameter>slot_name</parameter> <type>name</type>, <parameter>xlog_position </parameter> <type>pg_lsn</type>)
18495+ (<parameter>slot_name</parameter> <type>name</type>, <parameter>wal_position </parameter> <type>pg_lsn</type>)
1849618496 </entry>
1849718497 <entry>
1849818498 Creates a new physical replication slot named
@@ -18536,7 +18536,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1853618536 <literal><function>pg_create_logical_replication_slot(<parameter>slot_name</parameter> <type>name</type>, <parameter>plugin</parameter> <type>name</type> <optional>, <parameter>temporary</> <type>boolean</></optional>)</function></literal>
1853718537 </entry>
1853818538 <entry>
18539- (<parameter>slot_name</parameter> <type>name</type>, <parameter>xlog_position </parameter> <type>pg_lsn</type>)
18539+ (<parameter>slot_name</parameter> <type>name</type>, <parameter>wal_position </parameter> <type>pg_lsn</type>)
1854018540 </entry>
1854118541 <entry>
1854218542 Creates a new logical (decoding) replication slot named
0 commit comments