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