30 const char *stateDesc =
"unknown state";
38 stateDesc =
"building";
44 stateDesc =
"consistent";
57 #define PG_GET_LOGICAL_SNAPSHOT_META_COLS 3
69 elog(
ERROR,
"return type must be a row type");
88 #undef PG_GET_LOGICAL_SNAPSHOT_META_COLS
94 #define PG_GET_LOGICAL_SNAPSHOT_INFO_COLS 14
106 elog(
ERROR,
"return type must be a row type");
166 #undef PG_GET_LOGICAL_SNAPSHOT_INFO_COLS
ArrayType * construct_array_builtin(Datum *elems, int nelems, Oid elmtype)
static Datum values[MAXATTR]
#define CStringGetTextDatum(s)
#define Assert(condition)
Datum Int64GetDatum(int64 X)
#define PG_GETARG_TEXT_PP(n)
#define PG_RETURN_DATUM(x)
TypeFuncClass get_call_result_type(FunctionCallInfo fcinfo, Oid *resultTypeId, TupleDesc *resultTupleDesc)
static Datum HeapTupleGetDatum(const HeapTupleData *tuple)
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, const Datum *values, const bool *isnull)
MemoryContext CurrentMemoryContext
#define PG_GET_LOGICAL_SNAPSHOT_META_COLS
Datum pg_get_logical_snapshot_info(PG_FUNCTION_ARGS)
Datum pg_get_logical_snapshot_meta(PG_FUNCTION_ARGS)
#define PG_GET_LOGICAL_SNAPSHOT_INFO_COLS
PG_FUNCTION_INFO_V1(pg_get_logical_snapshot_meta)
static const char * get_snapbuild_state_desc(SnapBuildState state)
static Datum LSNGetDatum(XLogRecPtr X)
static Datum PointerGetDatum(const void *X)
static Datum TransactionIdGetDatum(TransactionId X)
static Datum BoolGetDatum(bool X)
static Datum UInt32GetDatum(uint32 X)
#define PG_LOGICAL_SNAPSHOTS_DIR
bool SnapBuildRestoreSnapshot(SnapBuildOnDisk *ondisk, const char *path, MemoryContext context, bool missing_ok)
@ SNAPBUILD_BUILDING_SNAPSHOT
@ SNAPBUILD_FULL_SNAPSHOT
XLogRecPtr start_decoding_at
TransactionId initial_xmin_horizon
struct SnapBuild::@116 catchange
bool building_full_snapshot
TransactionId next_phase_at
struct SnapBuild::@115 committed
XLogRecPtr last_serialized_snapshot
char * text_to_cstring(const text *t)