aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/typcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/typcache.h')
-rw-r--r--src/include/utils/typcache.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/include/utils/typcache.h b/src/include/utils/typcache.h
index 673bf176ade..5c8b0e850a9 100644
--- a/src/include/utils/typcache.h
+++ b/src/include/utils/typcache.h
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/typcache.h,v 1.12 2006/10/04 00:30:11 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/typcache.h,v 1.13 2006/12/23 00:43:13 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -33,17 +33,19 @@ typedef struct TypeCacheEntry
Oid typrelid;
/*
- * Information obtained from opclass entries
+ * Information obtained from opfamily entries
*
* These will be InvalidOid if no match could be found, or if the
* information hasn't yet been requested.
*/
- Oid btree_opc; /* OID of the default btree opclass */
- Oid hash_opc; /* OID of the default hash opclass */
- Oid eq_opr; /* OID of the equality operator */
- Oid lt_opr; /* OID of the less-than operator */
- Oid gt_opr; /* OID of the greater-than operator */
- Oid cmp_proc; /* OID of the btree comparison function */
+ Oid btree_opf; /* the default btree opclass' family */
+ Oid btree_opintype; /* the default btree opclass' opcintype */
+ Oid hash_opf; /* the default hash opclass' family */
+ Oid hash_opintype; /* the default hash opclass' opcintype */
+ Oid eq_opr; /* the equality operator */
+ Oid lt_opr; /* the less-than operator */
+ Oid gt_opr; /* the greater-than operator */
+ Oid cmp_proc; /* the btree comparison function */
/*
* Pre-set-up fmgr call info for the equality operator and the btree
@@ -71,6 +73,7 @@ typedef struct TypeCacheEntry
#define TYPECACHE_EQ_OPR_FINFO 0x0010
#define TYPECACHE_CMP_PROC_FINFO 0x0020
#define TYPECACHE_TUPDESC 0x0040
+#define TYPECACHE_BTREE_OPFAMILY 0x0080
extern TypeCacheEntry *lookup_type_cache(Oid type_id, int flags);