diff options
author | Masahiko Sawada | 2024-10-15 00:22:02 +0000 |
---|---|---|
committer | Masahiko Sawada | 2024-10-15 00:22:02 +0000 |
commit | 7cdfeee320e72162b62dddddee638e713c2b8680 (patch) | |
tree | f96ad90afe907be7ec9191bc845f79628325bfc4 /src/include | |
parent | e2fd615ecc177493b9a961a640ec0dcc4a25755c (diff) |
Add contrib/pg_logicalinspect.
This module provides SQL functions that allow to inspect logical
decoding components.
It currently allows to inspect the contents of serialized logical
snapshots of a running database cluster, which is useful for debugging
or educational purposes.
Author: Bertrand Drouvot
Reviewed-by: Amit Kapila, Shveta Malik, Peter Smith, Peter Eisentraut
Reviewed-by: David G. Johnston
Discussion: https://postgr.es/m/ZscuZ92uGh3wm4tW%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/replication/snapbuild.h | 4 | ||||
-rw-r--r-- | src/include/replication/snapbuild_internal.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/include/replication/snapbuild.h b/src/include/replication/snapbuild.h index dbb4bc2f4b2..3c1454df993 100644 --- a/src/include/replication/snapbuild.h +++ b/src/include/replication/snapbuild.h @@ -15,6 +15,10 @@ #include "access/xlogdefs.h" #include "utils/snapmgr.h" +/* + * Please keep get_snapbuild_state_desc() (located in the pg_logicalinspect + * module) updated if a change needs to be made to SnapBuildState. + */ typedef enum { /* diff --git a/src/include/replication/snapbuild_internal.h b/src/include/replication/snapbuild_internal.h index 5df2ae4423d..1e295c75076 100644 --- a/src/include/replication/snapbuild_internal.h +++ b/src/include/replication/snapbuild_internal.h @@ -193,4 +193,7 @@ typedef struct SnapBuildOnDisk /* variable amount of TransactionIds follows */ } SnapBuildOnDisk; +extern bool SnapBuildRestoreSnapshot(SnapBuildOnDisk *ondisk, const char *path, + MemoryContext context, bool missing_ok); + #endif /* SNAPBUILD_INTERNAL_H */ |