postgresql/src/include/nodes
Alvaro Herrera 897795240c Enable CHECK constraints to be declared NOT VALID
This means that they can initially be added to a large existing table
without checking its initial contents, but new tuples must comply to
them; a separate pass invoked by ALTER TABLE / VALIDATE can verify
existing data and ensure it complies with the constraint, at which point
it is marked validated and becomes a normal part of the table ecosystem.

An non-validated CHECK constraint is ignored in the planner for
constraint_exclusion purposes; when validated, cached plans are
recomputed so that partitioning starts working right away.

This patch also enables domains to have unvalidated CHECK constraints
attached to them as well by way of ALTER DOMAIN / ADD CONSTRAINT / NOT
VALID, which can later be validated with ALTER DOMAIN / VALIDATE
CONSTRAINT.

Thanks to Thom Brown, Dean Rasheed and Jaime Casanova for the various
reviews, and Robert Hass for documentation wording improvement
suggestions.

This patch was sponsored by Enova Financial.
2011-06-30 11:24:31 -04:00
..
bitmapset.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
execnodes.h Pass collations to functions in FunctionCallInfoData, not FmgrInfo. 2011-04-12 19:19:24 -04:00
makefuncs.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
memnodes.h Pull up isReset flag from AllocSetContext to MemoryContext struct. This 2011-05-21 14:47:19 -04:00
nodeFuncs.h Revise collation derivation method and expression-tree representation. 2011-03-19 20:30:08 -04:00
nodes.h Revise collation derivation method and expression-tree representation. 2011-03-19 20:30:08 -04:00
params.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
parsenodes.h Enable CHECK constraints to be declared NOT VALID 2011-06-30 11:24:31 -04:00
pg_list.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
plannodes.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
primnodes.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
print.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
readfuncs.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
relation.h Improve cost estimation for aggregates and window functions. 2011-04-24 16:55:20 -04:00
tidbitmap.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
value.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00