From 13e0d7a603852b8b05c03b45228daabffa0cced2 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Fri, 23 Dec 2022 09:15:01 +0900 Subject: Rename pg_dissect_walfile_name() to pg_split_walfile_name() The former name was discussed as being confusing, so use "split", as per a suggestion from Magnus Hagander. While on it, one of the output arguments is renamed from "segno" to "segment_number", as per a suggestion from Kyotaro Horiguchi. The documentation is updated to reflect all these changes. Bump catalog version. Author: Bharath Rupireddy, Michael Paquier Discussion: https://postgr.es/m/CABUevEytQVaOOhGdoh0D7hGwe3fuKcRF6NthsSW7ww04EmtFgQ@mail.gmail.com --- doc/src/sgml/func.sgml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1f63dc6dbac..836b9254fbc 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -26101,15 +26101,15 @@ LOG: Grand total: 1651920 bytes in 201 blocks; 622360 free (88 chunks); 1029560 - pg_dissect_walfile_name + pg_split_walfile_name - pg_dissect_walfile_name ( file_name text ) + pg_split_walfile_name ( file_name text ) record - ( segno numeric, + ( segment_number numeric, timeline_id bigint ) - Extracts the file sequence number and timeline ID from a WAL file + Extracts the sequence number and timeline ID from a WAL file name. @@ -26172,13 +26172,13 @@ postgres=# SELECT * FROM pg_walfile_name_offset((pg_backup_stop()).lsn); - pg_dissect_walfile_name is useful to compute a + pg_split_walfile_name is useful to compute a LSN from a file offset and WAL file name, for example: postgres=# \set file_name '000000010000000100C000AB' postgres=# \set offset 256 -postgres=# SELECT '0/0'::pg_lsn + pd.segno * ps.setting::int + :offset AS lsn - FROM pg_dissect_walfile_name(:'file_name') pd, +postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset AS lsn + FROM pg_split_walfile_name(:'file_name') pd, pg_show_all_settings() ps WHERE ps.name = 'wal_segment_size'; lsn -- cgit v1.2.3