diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-12-05 15:10:18 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-12-19 17:30:23 -0300 |
commit | 61d81bd28dbec65a6b144e0cd3d0bfe25913c3ac (patch) | |
tree | bc99d53c06bed6dcc146f7eb97babba998eb5e1d /src/backend/utils/cache/relcache.c | |
parent | 92203624934095163f8b57b5b3d7bbd2645da2c8 (diff) | |
download | postgresql-61d81bd28dbec65a6b144e0cd3d0bfe25913c3ac.tar.gz postgresql-61d81bd28dbec65a6b144e0cd3d0bfe25913c3ac.zip |
Allow CHECK constraints to be declared ONLY
This makes them enforceable only on the parent table, not on children
tables. This is useful in various situations, per discussion involving
people bitten by the restrictive behavior introduced in 8.4.
Message-Id:
8762mp93iw.fsf@comcast.net
CAFaPBrSMMpubkGf4zcRL_YL-AERUbYF_-ZNNYfb3CVwwEqc9TQ@mail.gmail.com
Authors: Nikhil Sontakke, Alex Hunsaker
Reviewed by Robert Haas and myself
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 603e4c1b621..f9ad75e7f89 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -3261,6 +3261,7 @@ CheckConstraintFetch(Relation relation) RelationGetRelationName(relation)); check[found].ccvalid = conform->convalidated; + check[found].cconly = conform->conisonly; check[found].ccname = MemoryContextStrdup(CacheMemoryContext, NameStr(conform->conname)); |