|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include "access/detoast.h"#include "access/htup_details.h"#include "catalog/pg_type.h"#include "funcapi.h"#include "libpq/pqformat.h"#include "miscadmin.h"#include "utils/builtins.h"#include "utils/datum.h"#include "utils/lsyscache.h"#include "utils/typcache.h"
Go to the source code of this file.
Data Structures | |
| struct | ColumnIOData |
| struct | RecordIOData |
| struct | ColumnCompareData |
| struct | RecordCompareData |
Typedefs | |
| typedef struct ColumnIOData | ColumnIOData |
| typedef struct RecordIOData | RecordIOData |
| typedef struct ColumnCompareData | ColumnCompareData |
| typedef struct RecordCompareData | RecordCompareData |
| Datum btrecordcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1313 of file rowtypes.c.
References PG_RETURN_INT32, and record_cmp().
| Datum btrecordimagecmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1801 of file rowtypes.c.
References PG_RETURN_INT32, and record_image_cmp().
| Datum hash_record | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1812 of file rowtypes.c.
References Assert, check_stack_depth(), DatumGetUInt32(), element_hash(), ereport, errcode(), errmsg(), ERROR, fb(), FmgrInfo::fn_oid, format_type_be(), FunctionCallInvoke, TypeCacheEntry::hash_proc_finfo, heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), i, InitFunctionCallInfoData, InvalidOid, ItemPointerSetInvalid(), LOCAL_FCINFO, lookup_rowtype_tupdesc(), lookup_type_cache(), MemoryContextAlloc(), MemSet, TupleDescData::natts, OidIsValid, palloc_array, pfree(), PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, PG_RETURN_UINT32, ReleaseTupleDesc, HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, TupleDescAttr(), TypeCacheEntry::type_id, TYPECACHE_HASH_PROC_FINFO, and values.
| Datum hash_record_extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1932 of file rowtypes.c.
References Assert, check_stack_depth(), DatumGetUInt64(), element_hash(), ereport, errcode(), errmsg(), ERROR, fb(), FmgrInfo::fn_oid, format_type_be(), FunctionCallInvoke, TypeCacheEntry::hash_extended_proc_finfo, heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), i, InitFunctionCallInfoData, Int64GetDatum(), InvalidOid, ItemPointerSetInvalid(), LOCAL_FCINFO, lookup_rowtype_tupdesc(), lookup_type_cache(), MemoryContextAlloc(), MemSet, TupleDescData::natts, OidIsValid, palloc_array, pfree(), PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, PG_GETARG_INT64, PG_RETURN_UINT64, ReleaseTupleDesc, HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, TupleDescAttr(), TypeCacheEntry::type_id, TYPECACHE_HASH_EXTENDED_PROC_FINFO, and values.
|
static |
Definition at line 823 of file rowtypes.c.
References Assert, check_stack_depth(), TypeCacheEntry::cmp_proc_finfo, DatumGetInt32(), ereport, errcode(), errmsg(), ERROR, fb(), FunctionCallInfoBaseData::flinfo, FmgrInfo::fn_extra, FmgrInfo::fn_mcxt, FmgrInfo::fn_oid, format_type_be(), FunctionCallInvoke, heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), InitFunctionCallInfoData, InvalidOid, ItemPointerSetInvalid(), j, LOCAL_FCINFO, lookup_rowtype_tupdesc(), lookup_type_cache(), Max, MemoryContextAlloc(), MemSet, OidIsValid, palloc(), pfree(), PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, ReleaseTupleDesc, TupleDescAttr(), TypeCacheEntry::type_id, and TYPECACHE_CMP_PROC_FINFO.
Referenced by btrecordcmp(), record_ge(), record_gt(), record_larger(), record_le(), record_lt(), and record_smaller().
| Datum record_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1067 of file rowtypes.c.
References check_stack_depth(), DatumGetBool(), TypeCacheEntry::eq_opr_finfo, ereport, errcode(), errmsg(), ERROR, fb(), FmgrInfo::fn_oid, format_type_be(), FunctionCallInvoke, heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), InitFunctionCallInfoData, InvalidOid, ItemPointerSetInvalid(), j, LOCAL_FCINFO, lookup_rowtype_tupdesc(), lookup_type_cache(), Max, MemoryContextAlloc(), MemSet, OidIsValid, palloc(), pfree(), PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, PG_RETURN_BOOL, ReleaseTupleDesc, TupleDescAttr(), TypeCacheEntry::type_id, and TYPECACHE_EQ_OPR_FINFO.
Referenced by record_ne().
| Datum record_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1307 of file rowtypes.c.
References PG_RETURN_BOOL, and record_cmp().
| Datum record_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1295 of file rowtypes.c.
References PG_RETURN_BOOL, and record_cmp().
|
static |
Definition at line 1349 of file rowtypes.c.
References Assert, DatumGetPointer(), elog, ereport, errcode(), errmsg(), ERROR, fb(), FunctionCallInfoBaseData::flinfo, FmgrInfo::fn_extra, FmgrInfo::fn_mcxt, format_type_be(), heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), InvalidOid, ItemPointerSetInvalid(), j, lookup_rowtype_tupdesc(), Max, MemoryContextAlloc(), MemSet, Min, palloc(), pfree(), PG_DETOAST_DATUM_PACKED, PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, ReleaseTupleDesc, toast_raw_datum_size(), TupleDescAttr(), VARDATA_ANY(), and VARHDRSZ.
Referenced by btrecordimagecmp(), record_image_ge(), record_image_gt(), record_image_le(), and record_image_lt().
| Datum record_image_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1595 of file rowtypes.c.
References datum_image_eq(), ereport, errcode(), errmsg(), ERROR, fb(), format_type_be(), heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), InvalidOid, ItemPointerSetInvalid(), j, lookup_rowtype_tupdesc(), Max, MemoryContextAlloc(), MemSet, palloc(), pfree(), PG_FREE_IF_COPY, PG_GETARG_HEAPTUPLEHEADER, PG_RETURN_BOOL, ReleaseTupleDesc, and TupleDescAttr().
Referenced by record_image_ne().
| Datum record_image_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1795 of file rowtypes.c.
References PG_RETURN_BOOL, and record_image_cmp().
| Datum record_image_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1783 of file rowtypes.c.
References PG_RETURN_BOOL, and record_image_cmp().
| Datum record_image_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1789 of file rowtypes.c.
References PG_RETURN_BOOL, and record_image_cmp().
| Datum record_image_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1777 of file rowtypes.c.
References PG_RETURN_BOOL, and record_image_cmp().
| Datum record_image_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1771 of file rowtypes.c.
References DatumGetBool(), PG_RETURN_BOOL, and record_image_eq().
| Datum record_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 74 of file rowtypes.c.
References appendStringInfoChar(), buf, check_stack_depth(), ereturn, errcode(), errdetail(), errmsg(), errsave, fb(), fmgr_info_cxt(), getTypeInputInfo(), heap_form_tuple(), heap_freetuple(), i, initStringInfo(), InputFunctionCallSafe(), InvalidOid, lookup_rowtype_tupdesc(), MemoryContextAlloc(), MemSet, TupleDescData::natts, palloc(), palloc_array, pfree(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_GETARG_OID, PG_RETURN_HEAPTUPLEHEADER, PG_RETURN_NULL, ReleaseTupleDesc, resetStringInfo(), HeapTupleData::t_data, HeapTupleData::t_len, TupleDescAttr(), and values.
| Datum record_larger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1319 of file rowtypes.c.
References PG_GETARG_DATUM, PG_RETURN_DATUM, and record_cmp().
| Datum record_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1301 of file rowtypes.c.
References PG_RETURN_BOOL, and record_cmp().
| Datum record_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1289 of file rowtypes.c.
References PG_RETURN_BOOL, and record_cmp().
| Datum record_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1283 of file rowtypes.c.
References DatumGetBool(), PG_RETURN_BOOL, and record_eq().
| Datum record_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 329 of file rowtypes.c.
References appendStringInfoChar(), appendStringInfoCharMacro, buf, check_stack_depth(), fb(), fmgr_info_cxt(), getTypeOutputInfo(), heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), i, initStringInfo(), InvalidOid, ItemPointerSetInvalid(), lookup_rowtype_tupdesc(), MemoryContextAlloc(), MemSet, TupleDescData::natts, OutputFunctionCall(), palloc_array, pfree(), PG_GETARG_HEAPTUPLEHEADER, PG_RETURN_CSTRING, ReleaseTupleDesc, HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, TupleDescAttr(), value, and values.
| Datum record_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 480 of file rowtypes.c.
References buf, check_stack_depth(), StringInfoData::data, ereport, errcode(), errmsg(), ERROR, fb(), FirstGenbkiObjectId, fmgr_info_cxt(), FORMAT_TYPE_ALLOW_INVALID, format_type_extended(), getTypeBinaryInputInfo(), heap_form_tuple(), heap_freetuple(), i, initReadOnlyStringInfo(), InvalidOid, lookup_rowtype_tupdesc(), MemoryContextAlloc(), MemSet, TupleDescData::natts, palloc(), palloc_array, pfree(), PG_GETARG_INT32, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_HEAPTUPLEHEADER, pq_getmsgint(), ReceiveFunctionCall(), ReleaseTupleDesc, HeapTupleData::t_data, HeapTupleData::t_len, TupleDescAttr(), and values.
| Datum record_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 687 of file rowtypes.c.
References buf, check_stack_depth(), fb(), fmgr_info_cxt(), getTypeBinaryOutputInfo(), heap_deform_tuple(), HeapTupleHeaderGetDatumLength(), HeapTupleHeaderGetTypeId(), HeapTupleHeaderGetTypMod(), i, InvalidOid, ItemPointerSetInvalid(), lookup_rowtype_tupdesc(), MemoryContextAlloc(), MemSet, TupleDescData::natts, palloc_array, pfree(), PG_GETARG_HEAPTUPLEHEADER, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendbytes(), pq_sendint32(), ReleaseTupleDesc, SendFunctionCall(), HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, TupleDescAttr(), values, VARDATA(), VARHDRSZ, and VARSIZE().
| Datum record_smaller | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1328 of file rowtypes.c.
References PG_GETARG_DATUM, PG_RETURN_DATUM, and record_cmp().