35 #define NUM_TIME_MAPPING_COLUMNS 3 117 TIMESTAMPTZOID, -1, 0);
153 memset(nulls, 0,
sizeof(nulls));
static OldSnapshotTimeMapping * GetOldSnapshotTimeMapping(void)
PG_FUNCTION_INFO_V1(pg_old_snapshot_time_mapping)
TupleDesc CreateTemplateTupleDesc(int natts)
#define SRF_IS_FIRSTCALL()
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
#define FLEXIBLE_ARRAY_MEMBER
static TupleDesc MakeOldSnapshotTimeMappingTupleDesc(void)
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, Datum *values, bool *isnull)
#define SRF_PERCALL_SETUP()
void LWLockRelease(LWLock *lock)
#define SRF_RETURN_NEXT(_funcctx, _result)
Datum pg_old_snapshot_time_mapping(PG_FUNCTION_ARGS)
#define TimestampTzGetDatum(X)
TupleDesc BlessTupleDesc(TupleDesc tupdesc)
Datum array_position(PG_FUNCTION_ARGS)
volatile OldSnapshotControlData * oldSnapshotControl
void TupleDescInitEntry(TupleDesc desc, AttrNumber attributeNumber, const char *attributeName, Oid oidtypeid, int32 typmod, int attdim)
TransactionId xid_by_minute[FLEXIBLE_ARRAY_MEMBER]
#define TransactionIdGetDatum(X)
#define TimestampTzPlusMilliseconds(tz, ms)
TimestampTz head_timestamp
TransactionId xid_by_minute[FLEXIBLE_ARRAY_MEMBER]
MemoryContext multi_call_memory_ctx
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
#define HeapTupleGetDatum(tuple)
static Datum values[MAXATTR]
#define NUM_TIME_MAPPING_COLUMNS
TimestampTz head_timestamp
#define OLD_SNAPSHOT_TIME_MAP_ENTRIES
#define offsetof(type, field)
#define SRF_RETURN_DONE(_funcctx)
static HeapTuple MakeOldSnapshotTimeMappingTuple(TupleDesc tupdesc, OldSnapshotTimeMapping *mapping)
#define SRF_FIRSTCALL_INIT()