Add relcache support for system catalogs with attnotnull columns.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Nov 2002 17:18:49 +0000 (17:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Nov 2002 17:18:49 +0000 (17:18 +0000)
commit24b130cb89ced67ea62342c17a60fb1bd80f16f1
tree57705e4dc57da05161a9a9ddbafe000c8437579c
parent4bc3598aa407c97508318264c407c77a6d32774d
Add relcache support for system catalogs with attnotnull columns.
The code was not making TupleConstr structs for such catalogs in
several places; with the consequence that the not-null constraint
wasn't actually enforced.  With this change,
INSERT INTO pg_proc VALUES('sdf');
generates a 'Fail to add null value' error instead of a core dump.
src/backend/utils/cache/relcache.c