diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-07 05:22:23 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-07 05:22:23 +0000 |
| commit | 0cb65564e5f855b1e9aa145fd645352130f74646 (patch) | |
| tree | badcc3ee73a16d472f9e637246589d6b803e620f /src/include/utils/relcache.h | |
| parent | 8de7472b45859108761223fb19b396efaa8f0a4d (diff) | |
Add exclusion constraints, which generalize the concept of uniqueness to
support any indexable commutative operator, not just equality. Two rows
violate the exclusion constraint if "row1.col OP row2.col" is TRUE for
each of the columns in the constraint.
Jeff Davis, reviewed by Robert Haas
Diffstat (limited to 'src/include/utils/relcache.h')
| -rw-r--r-- | src/include/utils/relcache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h index 007532fb0e5..4207e7ee4b0 100644 --- a/src/include/utils/relcache.h +++ b/src/include/utils/relcache.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/relcache.h,v 1.64 2009/08/12 20:53:31 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/relcache.h,v 1.65 2009/12/07 05:22:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -43,6 +43,10 @@ extern Oid RelationGetOidIndex(Relation relation); extern List *RelationGetIndexExpressions(Relation relation); extern List *RelationGetIndexPredicate(Relation relation); extern Bitmapset *RelationGetIndexAttrBitmap(Relation relation); +extern void RelationGetExclusionInfo(Relation indexRelation, + Oid **operators, + Oid **procs, + uint16 **strategies); extern void RelationSetIndexList(Relation relation, List *indexIds, Oid oidIndex); |
