diff options
Diffstat (limited to 'src/include/utils/typcache.h')
-rw-r--r-- | src/include/utils/typcache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/utils/typcache.h b/src/include/utils/typcache.h index 4065e483e4b..28b66718b33 100644 --- a/src/include/utils/typcache.h +++ b/src/include/utils/typcache.h @@ -20,6 +20,9 @@ #include "fmgr.h" +/* TypeCacheEnumData is an opaque struct known only within typcache.c */ +struct TypeCacheEnumData; + typedef struct TypeCacheEntry { /* typeId is the hash lookup key and MUST BE FIRST */ @@ -63,6 +66,12 @@ typedef struct TypeCacheEntry * reference-counted tupledesc.) */ TupleDesc tupDesc; + + /* + * Private information about an enum type. NULL if not enum or + * information hasn't been requested. + */ + struct TypeCacheEnumData *enumData; } TypeCacheEntry; /* Bit flags to indicate which fields a given caller needs to have set */ @@ -86,4 +95,6 @@ extern TupleDesc lookup_rowtype_tupdesc_copy(Oid type_id, int32 typmod); extern void assign_record_type_typmod(TupleDesc tupDesc); +extern int compare_values_of_enum(TypeCacheEntry *tcache, Oid arg1, Oid arg2); + #endif /* TYPCACHE_H */ |