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/backend/tcop/utility.c | |
parent | 8de7472b45859108761223fb19b396efaa8f0a4d (diff) | |
download | postgresql-0cb65564e5f855b1e9aa145fd645352130f74646.tar.gz postgresql-0cb65564e5f855b1e9aa145fd645352130f74646.zip |
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/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f4263d39e65..1a7640b3500 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.320 2009/12/01 02:31:12 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.321 2009/12/07 05:22:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -797,6 +797,7 @@ ProcessUtility(Node *parsetree, stmt->indexParams, /* parameters */ (Expr *) stmt->whereClause, stmt->options, + stmt->excludeOpNames, stmt->unique, stmt->primary, stmt->isconstraint, |