postgresql/src/backend/access
Tom Lane eabc714a91 Reimplement parsing and storage of default expressions and constraint
expressions in CREATE TABLE.  There is no longer an emasculated expression
syntax for these things; it's full a_expr for constraints, and b_expr
for defaults (unfortunately the fact that NOT NULL is a part of the
column constraint syntax causes a shift/reduce conflict if you try a_expr.
Oh well --- at least parenthesized boolean expressions work now).  Also,
stored expression for a column default is not pre-coerced to the column
type; we rely on transformInsertStatement to do that when the default is
actually used.  This means "f1 datetime default 'now'" behaves the way
people usually expect it to.
BTW, all the support code is now there to implement ALTER TABLE ADD
CONSTRAINT and ALTER TABLE ADD COLUMN with a default value.  I didn't
actually teach ALTER TABLE to call it, but it wouldn't be much work.
1999-10-03 23:55:40 +00:00
..
common Reimplement parsing and storage of default expressions and constraint 1999-10-03 23:55:40 +00:00
gist Several changes here, not very related but touching some of the same files. 1999-09-24 00:25:33 +00:00
hash Several changes here, not very related but touching some of the same files. 1999-09-24 00:25:33 +00:00
heap Several changes here, not very related but touching some of the same files. 1999-09-24 00:25:33 +00:00
index Mega-commit to make heap_open/heap_openr/heap_close take an 1999-09-18 19:08:25 +00:00
nbtree Currently,only the first column of multi-column indices 1999-09-27 18:20:21 +00:00
rtree Several changes here, not very related but touching some of the same files. 1999-09-24 00:25:33 +00:00
transam This is part #1 for of the DEFERRED CONSTRAINT TRIGGER support. 1999-09-29 16:06:40 +00:00
Makefile From: Robert Bruccoleri <bruc@bms.com> 1997-06-11 01:13:10 +00:00