pgsql: Move SnapBuild and SnapBuildOnDisk structs to snapshot_internal.

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move SnapBuild and SnapBuildOnDisk structs to snapshot_internal.
Date: 2024-10-15 00:20:46
Message-ID: E1t0VIt-000rQ0-5N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move SnapBuild and SnapBuildOnDisk structs to snapshot_internal.h.

This commit moves the definitions of the SnapBuild and SnapBuildOnDisk
structs, related to logical snapshots, to the snapshot_internal.h
file. This change allows external tools, such as
pg_logicalinspect (with an upcoming patch), to access and utilize the
contents of logical snapshots.

Author: Bertrand Drouvot
Reviewed-by: Amit Kapila, Shveta Malik, Peter Smith
Discussion: https://postgr.es/m/ZscuZ92uGh3wm4tW%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2fd615ecc177493b9a961a640ec0dcc4a25755c

Modified Files
--------------
src/backend/replication/logical/snapbuild.c | 175 +-----------------------
src/include/replication/snapbuild.h | 2 +-
src/include/replication/snapbuild_internal.h | 196 +++++++++++++++++++++++++++
3 files changed, 198 insertions(+), 175 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2024-10-15 00:22:49 pgsql: Add contrib/pg_logicalinspect.
Previous Message Alexander Korotkov 2024-10-14 23:00:13 Re: pgsql: Create functions pg_set_relation_stats, pg_clear_relation_stats.