@@ -17952,13 +17952,13 @@ SELECT set_config('log_statement_stats', 'off', false);
17952
17952
<primary>pg_create_restore_point</primary>
17953
17953
</indexterm>
17954
17954
<indexterm>
17955
- <primary>pg_current_xlog_flush_location </primary>
17955
+ <primary>pg_current_wal_flush_location </primary>
17956
17956
</indexterm>
17957
17957
<indexterm>
17958
- <primary>pg_current_xlog_insert_location </primary>
17958
+ <primary>pg_current_wal_insert_location </primary>
17959
17959
</indexterm>
17960
17960
<indexterm>
17961
- <primary>pg_current_xlog_location </primary>
17961
+ <primary>pg_current_wal_location </primary>
17962
17962
</indexterm>
17963
17963
<indexterm>
17964
17964
<primary>pg_start_backup</primary>
@@ -17973,24 +17973,24 @@ SELECT set_config('log_statement_stats', 'off', false);
17973
17973
<primary>pg_backup_start_time</primary>
17974
17974
</indexterm>
17975
17975
<indexterm>
17976
- <primary>pg_switch_xlog </primary>
17976
+ <primary>pg_switch_wal </primary>
17977
17977
</indexterm>
17978
17978
<indexterm>
17979
- <primary>pg_xlogfile_name </primary>
17979
+ <primary>pg_walfile_name </primary>
17980
17980
</indexterm>
17981
17981
<indexterm>
17982
- <primary>pg_xlogfile_name_offset </primary>
17982
+ <primary>pg_walfile_name_offset </primary>
17983
17983
</indexterm>
17984
17984
<indexterm>
17985
- <primary>pg_xlog_location_diff </primary>
17985
+ <primary>pg_wal_location_diff </primary>
17986
17986
</indexterm>
17987
17987
17988
17988
<para>
17989
17989
The functions shown in <xref
17990
17990
linkend="functions-admin-backup-table"> assist in making on-line backups.
17991
17991
These functions cannot be executed during recovery (except
17992
17992
<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>).
17994
17994
</para>
17995
17995
17996
17996
<table id="functions-admin-backup-table">
@@ -18011,21 +18011,21 @@ SELECT set_config('log_statement_stats', 'off', false);
18011
18011
</row>
18012
18012
<row>
18013
18013
<entry>
18014
- <literal><function>pg_current_xlog_flush_location ()</function></literal>
18014
+ <literal><function>pg_current_wal_flush_location ()</function></literal>
18015
18015
</entry>
18016
18016
<entry><type>pg_lsn</type></entry>
18017
18017
<entry>Get current transaction log flush location</entry>
18018
18018
</row>
18019
18019
<row>
18020
18020
<entry>
18021
- <literal><function>pg_current_xlog_insert_location ()</function></literal>
18021
+ <literal><function>pg_current_wal_insert_location ()</function></literal>
18022
18022
</entry>
18023
18023
<entry><type>pg_lsn</type></entry>
18024
18024
<entry>Get current transaction log insert location</entry>
18025
18025
</row>
18026
18026
<row>
18027
18027
<entry>
18028
- <literal><function>pg_current_xlog_location ()</function></literal>
18028
+ <literal><function>pg_current_wal_location ()</function></literal>
18029
18029
</entry>
18030
18030
<entry><type>pg_lsn</type></entry>
18031
18031
<entry>Get current transaction log write location</entry>
@@ -18067,28 +18067,28 @@ SELECT set_config('log_statement_stats', 'off', false);
18067
18067
</row>
18068
18068
<row>
18069
18069
<entry>
18070
- <literal><function>pg_switch_xlog ()</function></literal>
18070
+ <literal><function>pg_switch_wal ()</function></literal>
18071
18071
</entry>
18072
18072
<entry><type>pg_lsn</type></entry>
18073
18073
<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>
18074
18074
</row>
18075
18075
<row>
18076
18076
<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>
18078
18078
</entry>
18079
18079
<entry><type>text</type></entry>
18080
18080
<entry>Convert transaction log location string to file name</entry>
18081
18081
</row>
18082
18082
<row>
18083
18083
<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>
18085
18085
</entry>
18086
18086
<entry><type>text</>, <type>integer</></entry>
18087
18087
<entry>Convert transaction log location string to file name and decimal byte offset within file</entry>
18088
18088
</row>
18089
18089
<row>
18090
18090
<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>
18092
18092
</entry>
18093
18093
<entry><type>numeric</></entry>
18094
18094
<entry>Calculate the difference between two transaction log locations</entry>
@@ -18146,11 +18146,11 @@ postgres=# select pg_start_backup('label_goes_here');
18146
18146
</para>
18147
18147
18148
18148
<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
18150
18150
current file to be archived (assuming you are using continuous archiving).
18151
18151
The return value is the ending transaction log location + 1 within the just-completed transaction log file.
18152
18152
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
18154
18154
of the transaction log file currently in use.
18155
18155
</para>
18156
18156
@@ -18165,10 +18165,10 @@ postgres=# select pg_start_backup('label_goes_here');
18165
18165
</para>
18166
18166
18167
18167
<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
18169
18169
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
18172
18172
current transaction log flush point. The insertion point is the <quote>logical</>
18173
18173
end of the transaction log at any instant, while the write location is the end of
18174
18174
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');
18181
18181
</para>
18182
18182
18183
18183
<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
18185
18185
corresponding transaction log file name and byte offset from the results of any of the
18186
18186
above functions. For example:
18187
18187
<programlisting>
18188
- postgres=# SELECT * FROM pg_xlogfile_name_offset (pg_stop_backup());
18188
+ postgres=# SELECT * FROM pg_walfile_name_offset (pg_stop_backup());
18189
18189
file_name | file_offset
18190
18190
--------------------------+-------------
18191
18191
00000001000000000000000D | 4039624
18192
18192
(1 row)
18193
18193
</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.
18195
18195
When the given transaction log location is exactly at a transaction log file boundary, both
18196
18196
these functions return the name of the preceding transaction log file.
18197
18197
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());
18200
18200
</para>
18201
18201
18202
18202
<para>
18203
- <function>pg_xlog_location_diff </> calculates the difference in bytes
18203
+ <function>pg_wal_location_diff </> calculates the difference in bytes
18204
18204
between two transaction log locations. It can be used with
18205
18205
<structname>pg_stat_replication</structname> or some functions shown in
18206
18206
<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());
18220
18220
<primary>pg_is_in_recovery</primary>
18221
18221
</indexterm>
18222
18222
<indexterm>
18223
- <primary>pg_last_xlog_receive_location </primary>
18223
+ <primary>pg_last_wal_receive_location </primary>
18224
18224
</indexterm>
18225
18225
<indexterm>
18226
- <primary>pg_last_xlog_replay_location </primary>
18226
+ <primary>pg_last_wal_replay_location </primary>
18227
18227
</indexterm>
18228
18228
<indexterm>
18229
18229
<primary>pg_last_xact_replay_timestamp</primary>
@@ -18255,7 +18255,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18255
18255
</row>
18256
18256
<row>
18257
18257
<entry>
18258
- <literal><function>pg_last_xlog_receive_location ()</function></literal>
18258
+ <literal><function>pg_last_wal_receive_location ()</function></literal>
18259
18259
</entry>
18260
18260
<entry><type>pg_lsn</type></entry>
18261
18261
<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());
18269
18269
</row>
18270
18270
<row>
18271
18271
<entry>
18272
- <literal><function>pg_last_xlog_replay_location ()</function></literal>
18272
+ <literal><function>pg_last_wal_replay_location ()</function></literal>
18273
18273
</entry>
18274
18274
<entry><type>pg_lsn</type></entry>
18275
18275
<entry>Get last transaction log location replayed during recovery.
@@ -18301,13 +18301,13 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18301
18301
</table>
18302
18302
18303
18303
<indexterm>
18304
- <primary>pg_is_xlog_replay_paused </primary>
18304
+ <primary>pg_is_wal_replay_paused </primary>
18305
18305
</indexterm>
18306
18306
<indexterm>
18307
- <primary>pg_xlog_replay_pause </primary>
18307
+ <primary>pg_wal_replay_pause </primary>
18308
18308
</indexterm>
18309
18309
<indexterm>
18310
- <primary>pg_xlog_replay_resume </primary>
18310
+ <primary>pg_wal_replay_resume </primary>
18311
18311
</indexterm>
18312
18312
18313
18313
<para>
@@ -18327,23 +18327,23 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18327
18327
<tbody>
18328
18328
<row>
18329
18329
<entry>
18330
- <literal><function>pg_is_xlog_replay_paused ()</function></literal>
18330
+ <literal><function>pg_is_wal_replay_paused ()</function></literal>
18331
18331
</entry>
18332
18332
<entry><type>bool</type></entry>
18333
18333
<entry>True if recovery is paused.
18334
18334
</entry>
18335
18335
</row>
18336
18336
<row>
18337
18337
<entry>
18338
- <literal><function>pg_xlog_replay_pause ()</function></literal>
18338
+ <literal><function>pg_wal_replay_pause ()</function></literal>
18339
18339
</entry>
18340
18340
<entry><type>void</type></entry>
18341
18341
<entry>Pauses recovery immediately (restricted to superusers by default, but other users can be granted EXECUTE to run the function).
18342
18342
</entry>
18343
18343
</row>
18344
18344
<row>
18345
18345
<entry>
18346
- <literal><function>pg_xlog_replay_resume ()</function></literal>
18346
+ <literal><function>pg_wal_replay_resume ()</function></literal>
18347
18347
</entry>
18348
18348
<entry><type>void</type></entry>
18349
18349
<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());
18492
18492
<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>
18493
18493
</entry>
18494
18494
<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>)
18496
18496
</entry>
18497
18497
<entry>
18498
18498
Creates a new physical replication slot named
@@ -18536,7 +18536,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18536
18536
<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>
18537
18537
</entry>
18538
18538
<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>)
18540
18540
</entry>
18541
18541
<entry>
18542
18542
Creates a new logical (decoding) replication slot named
0 commit comments