68 #include "utils/fmgroids.h"
84 #define TCFLAGS_HAVE_PG_TYPE_DATA 0x000001
85 #define TCFLAGS_CHECKED_BTREE_OPCLASS 0x000002
86 #define TCFLAGS_CHECKED_HASH_OPCLASS 0x000004
87 #define TCFLAGS_CHECKED_EQ_OPR 0x000008
88 #define TCFLAGS_CHECKED_LT_OPR 0x000010
89 #define TCFLAGS_CHECKED_GT_OPR 0x000020
90 #define TCFLAGS_CHECKED_CMP_PROC 0x000040
91 #define TCFLAGS_CHECKED_HASH_PROC 0x000080
92 #define TCFLAGS_CHECKED_HASH_EXTENDED_PROC 0x000100
93 #define TCFLAGS_CHECKED_ELEM_PROPERTIES 0x000200
94 #define TCFLAGS_HAVE_ELEM_EQUALITY 0x000400
95 #define TCFLAGS_HAVE_ELEM_COMPARE 0x000800
96 #define TCFLAGS_HAVE_ELEM_HASHING 0x001000
97 #define TCFLAGS_HAVE_ELEM_EXTENDED_HASHING 0x002000
98 #define TCFLAGS_CHECKED_FIELD_PROPERTIES 0x004000
99 #define TCFLAGS_HAVE_FIELD_EQUALITY 0x008000
100 #define TCFLAGS_HAVE_FIELD_COMPARE 0x010000
101 #define TCFLAGS_HAVE_FIELD_HASHING 0x020000
102 #define TCFLAGS_HAVE_FIELD_EXTENDED_HASHING 0x040000
103 #define TCFLAGS_CHECKED_DOMAIN_CONSTRAINTS 0x080000
104 #define TCFLAGS_DOMAIN_BASE_IS_COMPOSITE 0x100000
107 #define TCFLAGS_OPERATOR_FLAGS \
108 (~(TCFLAGS_HAVE_PG_TYPE_DATA | \
109 TCFLAGS_CHECKED_DOMAIN_CONSTRAINTS | \
110 TCFLAGS_DOMAIN_BASE_IS_COMPOSITE))
300 static int dcs_cmp(
const void *
a,
const void *
b);
326 static int enum_oid_cmp(
const void *left,
const void *right);
356 ctl.keysize =
sizeof(
Oid);
376 if (typentry == NULL)
391 (
errcode(ERRCODE_UNDEFINED_OBJECT),
392 errmsg(
"type with OID %u does not exist", type_id)));
394 if (!typtup->typisdefined)
396 (
errcode(ERRCODE_UNDEFINED_OBJECT),
397 errmsg(
"type \"%s\" is only a shell",
414 typentry->
typlen = typtup->typlen;
415 typentry->
typbyval = typtup->typbyval;
416 typentry->
typalign = typtup->typalign;
418 typentry->
typtype = typtup->typtype;
419 typentry->
typrelid = typtup->typrelid;
421 typentry->
typelem = typtup->typelem;
426 if (typentry->
typtype == TYPTYPE_DOMAIN)
446 (
errcode(ERRCODE_UNDEFINED_OBJECT),
447 errmsg(
"type with OID %u does not exist", type_id)));
449 if (!typtup->typisdefined)
451 (
errcode(ERRCODE_UNDEFINED_OBJECT),
452 errmsg(
"type \"%s\" is only a shell",
459 typentry->
typlen = typtup->typlen;
460 typentry->
typbyval = typtup->typbyval;
461 typentry->
typalign = typtup->typalign;
463 typentry->
typtype = typtup->typtype;
464 typentry->
typrelid = typtup->typrelid;
466 typentry->
typelem = typtup->typelem;
575 if (eq_opr == ARRAY_EQ_OP &&
578 else if (eq_opr == RECORD_EQ_OP &&
583 if (typentry->
eq_opr != eq_opr)
586 typentry->
eq_opr = eq_opr;
612 if (lt_opr == ARRAY_LT_OP &&
615 else if (lt_opr == RECORD_LT_OP &&
619 typentry->
lt_opr = lt_opr;
637 if (gt_opr == ARRAY_GT_OP &&
640 else if (gt_opr == RECORD_GT_OP &&
644 typentry->
gt_opr = gt_opr;
662 if (cmp_proc == F_BTARRAYCMP &&
665 else if (cmp_proc == F_BTRECORDCMP &&
700 if (hash_proc == F_HASH_ARRAY &&
703 else if (hash_proc == F_HASH_RECORD &&
706 else if (hash_proc == F_HASH_RANGE &&
713 if (hash_proc == F_HASH_MULTIRANGE &&
749 if (hash_extended_proc == F_HASH_ARRAY_EXTENDED &&
752 else if (hash_extended_proc == F_HASH_RECORD_EXTENDED &&
755 else if (hash_extended_proc == F_HASH_RANGE_EXTENDED &&
762 if (hash_extended_proc == F_HASH_MULTIRANGE_EXTENDED &&
825 typentry->
typtype == TYPTYPE_COMPOSITE)
837 typentry->
typtype == TYPTYPE_RANGE)
850 typentry->
typtype == TYPTYPE_MULTIRANGE)
860 typentry->
typtype == TYPTYPE_DOMAIN)
868 typentry->
typtype == TYPTYPE_DOMAIN)
885 elog(
ERROR,
"invalid typrelid for composite type %u",
930 elog(
ERROR,
"cache lookup failed for range type %u",
934 subtypeOid = pg_range->rngsubtype;
936 opclassOid = pg_range->rngsubopc;
937 canonicalOid = pg_range->rngcanonical;
938 subdiffOid = pg_range->rngsubdiff;
950 elog(
ERROR,
"missing support function %d(%u,%u) in opfamily %u",
978 elog(
ERROR,
"cache lookup failed for multirange type %u",
998 bool notNull =
false;
1042 elog(
ERROR,
"cache lookup failed for type %u", typeOid);
1045 if (typTup->typtype != TYPTYPE_DOMAIN)
1053 if (typTup->typnotnull)
1058 Anum_pg_constraint_contypid,
1075 if (
c->contype != CONSTRAINT_CHECK)
1080 conRel->
rd_att, &isNull);
1082 elog(
ERROR,
"domain \"%s\" constraint \"%s\" has NULL conbin",
1094 "Domain constraints",
1135 else if (nccons >= cconslen)
1141 ccons[nccons++] = r;
1166 typeOid = typTup->typbasetype;
1186 "Domain constraints",
1235 return strcmp((*ca)->name, (*cb)->name);
1283 foreach(lc, constraints)
1294 result =
lappend(result, newr);
1357 typentry->
typtype == TYPTYPE_DOMAIN)
1533 if (typentry->
type_id == RECORDOID)
1538 else if (typentry->
typtype == TYPTYPE_COMPOSITE)
1545 if (typentry->
tupDesc == NULL)
1557 for (
i = 0;
i < tupdesc->
natts;
i++)
1562 if (attr->attisdropped)
1583 typentry->
flags |= newflags;
1587 else if (typentry->
typtype == TYPTYPE_DOMAIN)
1605 if (baseentry->
typtype == TYPTYPE_COMPOSITE)
1646 typentry->
typtype == TYPTYPE_RANGE)
1685 if (typentry->
rngtype == NULL &&
1686 typentry->
typtype == TYPTYPE_MULTIRANGE)
1741 if (type_id != RECORDOID)
1749 if (typentry->
tupDesc == NULL && !noError)
1751 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1752 errmsg(
"type %s is not composite",
1811 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1812 errmsg(
"record type has not been registered")));
1855 if (tupDesc != NULL)
1893 if (type_id != RECORDOID)
1904 if (typentry->
typtype == TYPTYPE_DOMAIN)
1908 if (typentry->
tupDesc == NULL && !noError)
1910 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1911 errmsg(
"type %s is not composite",
1917 if (tupDesc != NULL)
1988 if (found && recentry->
tupdesc != NULL)
1999 if (entDesc == NULL)
2047 if (type_id != RECORDOID)
2055 if (typentry->
tupDesc == NULL)
2057 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
2058 errmsg(
"type %s is not composite",
2153 if (tupdesc == NULL)
2164 elog(
ERROR,
"cannot create duplicate shared record typmod");
2170 record_table_key.
shared =
false;
2299 if (typentry->
typtype == TYPTYPE_COMPOSITE)
2306 if (typentry->
tupDesc != NULL)
2332 else if (typentry->
typtype == TYPTYPE_DOMAIN)
2365 if (hashvalue == 0 || typentry->
type_id_hash == hashvalue)
2452 if (arg < enumdata->bitmap_base)
2455 if (offset > (
Oid) INT_MAX)
2513 if (item1 == NULL || item2 == NULL)
2531 elog(
ERROR,
"enum value %u not found in cache for enum %s",
2534 elog(
ERROR,
"enum value %u not found in cache for enum %s",
2567 if (tcache->
typtype != TYPTYPE_ENUM)
2569 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
2570 errmsg(
"%s is not an enum",
2586 Anum_pg_enum_enumtypid,
2592 EnumTypIdLabelIndexId,
2600 if (numitems >= maxitems)
2605 items[numitems].enum_oid = en->oid;
2606 items[numitems].sort_order = en->enumsortorder;
2632 for (start_pos = 0; start_pos < numitems - 1; start_pos++)
2638 int this_bm_size = 1;
2639 Oid start_oid =
items[start_pos].enum_oid;
2643 for (
i = start_pos + 1;
i < numitems;
i++)
2647 offset =
items[
i].enum_oid - start_oid;
2652 if (
items[
i].sort_order > prev_order)
2654 prev_order =
items[
i].sort_order;
2661 if (this_bm_size > bm_size)
2664 bitmap_base = start_oid;
2665 bitmap = this_bitmap;
2666 bm_size = this_bm_size;
2677 if (bm_size >= (numitems - start_pos - 1))
2772 key.u.local_tupdesc = tupdesc;
2775 if (record_table_entry)
2779 record_table_entry);
2806 elog(
ERROR,
"cannot create duplicate shared record typmod");
2814 typmod_table_entry->
typmod = typmod;
2817 typmod_table_entry);
2833 record_table_entry);
2855 record_table_entry);
static void pg_atomic_init_u32(volatile pg_atomic_uint32 *ptr, uint32 val)
static uint32 pg_atomic_fetch_add_u32(volatile pg_atomic_uint32 *ptr, int32 add_)
void bms_free(Bitmapset *a)
bool bms_is_member(int x, const Bitmapset *a)
Bitmapset * bms_make_singleton(int x)
Bitmapset * bms_add_member(Bitmapset *a, int x)
Bitmapset * bms_copy(const Bitmapset *a)
#define TextDatumGetCString(d)
#define RegProcedureIsValid(p)
#define Assert(condition)
#define FLEXIBLE_ARRAY_MEMBER
#define MemSet(start, val, len)
#define OidIsValid(objectId)
void CreateCacheMemoryContext(void)
void * dsa_get_address(dsa_area *area, dsa_pointer dp)
void dsa_free(dsa_area *area, dsa_pointer dp)
#define dsa_allocate(area, size)
bool dshash_delete_key(dshash_table *hash_table, const void *key)
void dshash_memcpy(void *dest, const void *src, size_t size, void *arg)
void dshash_release_lock(dshash_table *hash_table, void *entry)
void dshash_detach(dshash_table *hash_table)
void * dshash_find(dshash_table *hash_table, const void *key, bool exclusive)
dshash_table_handle dshash_get_hash_table_handle(dshash_table *hash_table)
dshash_hash dshash_memhash(const void *v, size_t size, void *arg)
void * dshash_find_or_insert(dshash_table *hash_table, const void *key, bool *found)
dshash_table * dshash_attach(dsa_area *area, const dshash_parameters *params, dshash_table_handle handle, void *arg)
int dshash_memcmp(const void *a, const void *b, size_t size, void *arg)
dshash_table * dshash_create(dsa_area *area, const dshash_parameters *params, void *arg)
dsa_pointer dshash_table_handle
void on_dsm_detach(dsm_segment *seg, on_dsm_detach_callback function, Datum arg)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
HTAB * hash_create(const char *tabname, long nelem, const HASHCTL *info, int flags)
void * hash_seq_search(HASH_SEQ_STATUS *status)
void hash_seq_init(HASH_SEQ_STATUS *status, HTAB *hashp)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
ExprState * ExecInitExpr(Expr *node, PlanState *parent)
void fmgr_info_cxt(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt)
void systable_endscan(SysScanDesc sysscan)
HeapTuple systable_getnext(SysScanDesc sysscan)
SysScanDesc systable_beginscan(Relation heapRelation, Oid indexId, bool indexOK, Snapshot snapshot, int nkeys, ScanKey key)
#define HASHSTANDARD_PROC
#define HASHEXTENDED_PROC
#define HeapTupleIsValid(tuple)
static Datum fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull)
#define IsParallelWorker()
Oid GetDefaultOpClass(Oid type_id, Oid am_id)
static int pg_cmp_u32(uint32 a, uint32 b)
void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func, Datum arg)
void CacheRegisterSyscacheCallback(int cacheid, SyscacheCallbackFunction func, Datum arg)
List * lappend(List *list, void *datum)
List * lcons(void *datum, List *list)
Oid get_opclass_input_type(Oid opclass)
Oid get_opclass_family(Oid opclass)
Oid get_multirange_range(Oid multirangeOid)
Oid get_opfamily_proc(Oid opfamily, Oid lefttype, Oid righttype, int16 procnum)
RegProcedure get_opcode(Oid opno)
Oid get_opfamily_member(Oid opfamily, Oid lefttype, Oid righttype, int16 strategy)
Oid get_base_element_type(Oid typid)
Oid getBaseTypeAndTypmod(Oid typid, int32 *typmod)
@ LWTRANCHE_PER_SESSION_RECORD_TYPMOD
@ LWTRANCHE_PER_SESSION_RECORD_TYPE
void MemoryContextRegisterResetCallback(MemoryContext context, MemoryContextCallback *cb)
void MemoryContextSetParent(MemoryContext context, MemoryContext new_parent)
char * pstrdup(const char *in)
void pfree(void *pointer)
MemoryContext TopMemoryContext
void * MemoryContextAllocZero(MemoryContext context, Size size)
MemoryContext CurrentMemoryContext
void * repalloc(void *pointer, Size size)
void * MemoryContextAlloc(MemoryContext context, Size size)
MemoryContext CacheMemoryContext
void MemoryContextDelete(MemoryContext context)
#define AllocSetContextCreate
#define ALLOCSET_SMALL_SIZES
#define repalloc0_array(pointer, type, oldcount, count)
FormData_pg_attribute * Form_pg_attribute
static uint32 pg_nextpower2_32(uint32 num)
FormData_pg_constraint * Form_pg_constraint
FormData_pg_enum * Form_pg_enum
FormData_pg_range * Form_pg_range
FormData_pg_type * Form_pg_type
Expr * expression_planner(Expr *expr)
#define qsort(a, b, c, d)
static Datum PointerGetDatum(const void *X)
static Datum ObjectIdGetDatum(Oid X)
MemoryContextSwitchTo(old_ctx)
void * stringToNode(const char *str)
#define RelationGetDescr(relation)
void ScanKeyInit(ScanKey entry, AttrNumber attributeNumber, StrategyNumber strategy, RegProcedure procedure, Datum argument)
static pg_noinline void Size size
void relation_close(Relation relation, LOCKMODE lockmode)
Relation relation_open(Oid relationId, LOCKMODE lockmode)
#define BTGreaterStrategyNumber
#define HTEqualStrategyNumber
#define BTLessStrategyNumber
#define BTEqualStrategyNumber
DomainConstraintCache * dcc
MemoryContextCallback callback
DomainConstraintType constrainttype
ExprState * check_exprstate
MemoryContextCallbackFunction func
dshash_table * shared_record_table
struct SharedRecordTypmodRegistry * shared_typmod_registry
dshash_table * shared_typmod_table
union SharedRecordTableKey::@33 u
dsa_pointer shared_tupdesc
dshash_table_handle typmod_table_handle
pg_atomic_uint32 next_typmod
dshash_table_handle record_table_handle
dsa_pointer shared_tupdesc
uint64 tupDesc_identifier
FmgrInfo rng_cmp_proc_finfo
struct TypeCacheEntry * rngelemtype
FmgrInfo hash_extended_proc_finfo
DomainConstraintCache * domainData
struct TypeCacheEntry * rngtype
FmgrInfo rng_subdiff_finfo
struct TypeCacheEnumData * enumData
struct TypeCacheEntry * nextDomain
FmgrInfo rng_canonical_finfo
Bitmapset * sorted_values
EnumItem enum_values[FLEXIBLE_ARRAY_MEMBER]
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
#define GetSysCacheHashValue1(cacheId, key1)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc)
void TupleDescCopy(TupleDesc dst, TupleDesc src)
void DecrTupleDescRefCount(TupleDesc tupdesc)
void FreeTupleDesc(TupleDesc tupdesc)
void IncrTupleDescRefCount(TupleDesc tupdesc)
uint32 hashRowType(TupleDesc desc)
TupleDesc CreateTupleDescCopy(TupleDesc tupdesc)
bool equalRowTypes(TupleDesc tupdesc1, TupleDesc tupdesc2)
#define TupleDescSize(src)
#define PinTupleDesc(tupdesc)
struct TupleDescData * TupleDesc
#define TupleDescAttr(tupdesc, i)
#define TCFLAGS_CHECKED_BTREE_OPCLASS
#define TCFLAGS_CHECKED_HASH_OPCLASS
static bool range_element_has_hashing(TypeCacheEntry *typentry)
void InitDomainConstraintRef(Oid type_id, DomainConstraintRef *ref, MemoryContext refctx, bool need_exprstate)
static TupleDesc lookup_rowtype_tupdesc_internal(Oid type_id, int32 typmod, bool noError)
TupleDesc lookup_rowtype_tupdesc(Oid type_id, int32 typmod)
void SharedRecordTypmodRegistryAttach(SharedRecordTypmodRegistry *registry)
#define TCFLAGS_OPERATOR_FLAGS
#define TCFLAGS_CHECKED_FIELD_PROPERTIES
static void cache_range_element_properties(TypeCacheEntry *typentry)
#define TCFLAGS_HAVE_FIELD_COMPARE
#define TCFLAGS_DOMAIN_BASE_IS_COMPOSITE
static void load_enum_cache_data(TypeCacheEntry *tcache)
static bool record_fields_have_hashing(TypeCacheEntry *typentry)
static EnumItem * find_enumitem(TypeCacheEnumData *enumdata, Oid arg)
static bool record_fields_have_extended_hashing(TypeCacheEntry *typentry)
static TupleDesc find_or_make_matching_shared_tupledesc(TupleDesc tupdesc)
static int32 NextRecordTypmod
TupleDesc lookup_rowtype_tupdesc_domain(Oid type_id, int32 typmod, bool noError)
static const dshash_parameters srtr_typmod_table_params
#define TCFLAGS_CHECKED_GT_OPR
static bool multirange_element_has_hashing(TypeCacheEntry *typentry)
static List * prep_domain_constraints(List *constraints, MemoryContext execctx)
TupleDesc lookup_rowtype_tupdesc_noerror(Oid type_id, int32 typmod, bool noError)
static bool record_fields_have_equality(TypeCacheEntry *typentry)
#define TCFLAGS_CHECKED_LT_OPR
#define TCFLAGS_CHECKED_HASH_PROC
static void dccref_deletion_callback(void *arg)
#define TCFLAGS_HAVE_FIELD_EQUALITY
struct SharedRecordTableEntry SharedRecordTableEntry
void SharedRecordTypmodRegistryInit(SharedRecordTypmodRegistry *registry, dsm_segment *segment, dsa_area *area)
static int dcs_cmp(const void *a, const void *b)
static bool array_element_has_extended_hashing(TypeCacheEntry *typentry)
static int shared_record_table_compare(const void *a, const void *b, size_t size, void *arg)
static bool array_element_has_hashing(TypeCacheEntry *typentry)
static void load_multirangetype_info(TypeCacheEntry *typentry)
#define TCFLAGS_CHECKED_CMP_PROC
struct SharedTypmodTableEntry SharedTypmodTableEntry
#define TCFLAGS_HAVE_ELEM_EXTENDED_HASHING
static bool multirange_element_has_extended_hashing(TypeCacheEntry *typentry)
static bool array_element_has_equality(TypeCacheEntry *typentry)
static dsa_pointer share_tupledesc(dsa_area *area, TupleDesc tupdesc, uint32 typmod)
static void load_rangetype_info(TypeCacheEntry *typentry)
uint64 assign_record_type_identifier(Oid type_id, int32 typmod)
static RecordCacheArrayEntry * RecordCacheArray
static bool range_element_has_extended_hashing(TypeCacheEntry *typentry)
static HTAB * RecordCacheHash
static bool enum_known_sorted(TypeCacheEnumData *enumdata, Oid arg)
static TypeCacheEntry * firstDomainTypeEntry
struct RecordCacheEntry RecordCacheEntry
static void shared_record_typmod_registry_detach(dsm_segment *segment, Datum datum)
#define TCFLAGS_HAVE_ELEM_HASHING
struct RecordCacheArrayEntry RecordCacheArrayEntry
#define TCFLAGS_CHECKED_HASH_EXTENDED_PROC
static void TypeCacheTypCallback(Datum arg, int cacheid, uint32 hashvalue)
struct TypeCacheEnumData TypeCacheEnumData
static void TypeCacheConstrCallback(Datum arg, int cacheid, uint32 hashvalue)
static void TypeCacheOpcCallback(Datum arg, int cacheid, uint32 hashvalue)
static void load_domaintype_info(TypeCacheEntry *typentry)
bool DomainHasConstraints(Oid type_id)
#define TCFLAGS_HAVE_ELEM_COMPARE
static void TypeCacheRelCallback(Datum arg, Oid relid)
static void cache_array_element_properties(TypeCacheEntry *typentry)
size_t SharedRecordTypmodRegistryEstimate(void)
static void cache_multirange_element_properties(TypeCacheEntry *typentry)
#define TCFLAGS_CHECKED_ELEM_PROPERTIES
#define TCFLAGS_HAVE_ELEM_EQUALITY
static bool array_element_has_compare(TypeCacheEntry *typentry)
#define TCFLAGS_HAVE_PG_TYPE_DATA
static uint32 shared_record_table_hash(const void *a, size_t size, void *arg)
int compare_values_of_enum(TypeCacheEntry *tcache, Oid arg1, Oid arg2)
#define TCFLAGS_CHECKED_DOMAIN_CONSTRAINTS
#define TCFLAGS_HAVE_FIELD_EXTENDED_HASHING
struct SharedRecordTableKey SharedRecordTableKey
static int32 RecordCacheArrayLen
void assign_record_type_typmod(TupleDesc tupDesc)
static HTAB * TypeCacheHash
static uint64 tupledesc_id_counter
TypeCacheEntry * lookup_type_cache(Oid type_id, int flags)
static bool record_fields_have_compare(TypeCacheEntry *typentry)
#define TCFLAGS_HAVE_FIELD_HASHING
static int record_type_typmod_compare(const void *a, const void *b, size_t size)
static const dshash_parameters srtr_record_table_params
TupleDesc lookup_rowtype_tupdesc_copy(Oid type_id, int32 typmod)
static int enum_oid_cmp(const void *left, const void *right)
static void decr_dcc_refcount(DomainConstraintCache *dcc)
#define TCFLAGS_CHECKED_EQ_OPR
void UpdateDomainConstraintRef(DomainConstraintRef *ref)
static void ensure_record_cache_typmod_slot_exists(int32 typmod)
static void cache_record_field_properties(TypeCacheEntry *typentry)
static uint32 record_type_typmod_hash(const void *data, size_t size)
static void load_typcache_tupdesc(TypeCacheEntry *typentry)
#define INVALID_TUPLEDESC_IDENTIFIER
#define TYPECACHE_HASH_PROC_FINFO
#define TYPECACHE_HASH_OPFAMILY
#define TYPECACHE_TUPDESC
#define TYPECACHE_MULTIRANGE_INFO
struct SharedRecordTypmodRegistry SharedRecordTypmodRegistry
#define TYPECACHE_EQ_OPR_FINFO
#define TYPECACHE_HASH_EXTENDED_PROC
#define TYPECACHE_BTREE_OPFAMILY
#define TYPECACHE_DOMAIN_BASE_INFO
#define TYPECACHE_DOMAIN_CONSTR_INFO
#define TYPECACHE_RANGE_INFO
#define TYPECACHE_CMP_PROC
struct TypeCacheEntry TypeCacheEntry
#define TYPECACHE_HASH_EXTENDED_PROC_FINFO
#define TYPECACHE_CMP_PROC_FINFO
#define TYPECACHE_HASH_PROC