diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-12-20 13:36:27 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-12-20 13:36:27 +0900 |
commit | cca186348929cd75f23ef1b25922386bf38cf99c (patch) | |
tree | f4b4a6ae944991ef0275fed8eebcd867e40cc0e6 /contrib/postgres_fdw/postgres_fdw.c | |
parent | b3bb7d12af97f035c3aa3ad8dd41b44d01e2defa (diff) | |
download | postgresql-cca186348929cd75f23ef1b25922386bf38cf99c.tar.gz postgresql-cca186348929cd75f23ef1b25922386bf38cf99c.zip |
Add pg_dissect_walfile_name()
This function takes in input a WAL segment name and returns a tuple made
of the segment sequence number (dependent on the WAL segment size of the
cluster) and its timeline, as of a thin SQL wrapper around the existing
XLogFromFileName().
This function has multiple usages, like being able to compile a LSN from
a file name and an offset, or finding the timeline of a segment without
having to do to some maths based on the first eight characters of the
segment.
Bump catalog version.
Author: Bharath Rupireddy
Reviewed-by: Nathan Bossart, Kyotaro Horiguchi, Maxim Orlov, Michael
Paquier
Discussion: https://postgr.es/m/CALj2ACWV=FCddsxcGbVOA=cvPyMr75YCFbSQT6g4KDj=gcJK4g@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions