190 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
191 errmsg(
"must be superuser to use raw page functions")));
213 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
214 errmsg(
"input page is not a valid GIN data leaf page"),
215 errdetail(
"Expected special size %d, got %d.",
222 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
223 errmsg(
"input page is not a compressed GIN data leaf page"),
232 elog(
ERROR,
"return type must be a row type");
234 inter_call_data->
tupd = tupdesc;
238 (((
char *) inter_call_data->
seg) +
249 if (inter_call_data->
seg != inter_call_data->
lastseg)
261 memset(nulls, 0,
sizeof(nulls));
269 for (
i = 0;
i < ndecoded;
i++)
ArrayType * construct_array_builtin(Datum *elems, int nelems, Oid elmtype)
static Datum values[MAXATTR]
static bool PageIsNew(Page page)
static uint16 PageGetSpecialSize(Page page)
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_BYTEA_P(n)
TypeFuncClass get_call_result_type(FunctionCallInfo fcinfo, Oid *resultTypeId, TupleDesc *resultTupleDesc)
#define SRF_IS_FIRSTCALL()
#define SRF_PERCALL_SETUP()
#define SRF_RETURN_NEXT(_funcctx, _result)
#define SRF_FIRSTCALL_INIT()
static Datum HeapTupleGetDatum(const HeapTupleData *tuple)
#define SRF_RETURN_DONE(_funcctx)
#define GinPageGetOpaque(page)
#define GinDataLeafPageGetPostingListSize(page)
#define GinNextPostingListSegment(cur)
#define GinDataLeafPageGetPostingList(page)
ItemPointer ginPostingListDecode(GinPostingList *plist, int *ndecoded_out)
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, const Datum *values, const bool *isnull)
static Datum ItemPointerGetDatum(const ItemPointerData *X)
void pfree(void *pointer)
Page get_page_from_raw(bytea *raw_page)
static Datum PointerGetDatum(const void *X)
static Datum UInt16GetDatum(uint16 X)
MemoryContextSwitchTo(old_ctx)
MemoryContext multi_call_memory_ctx