postgresql/src/backend/access/common
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
..
Makefile Make functions static or NOT_USED as appropriate. 1999-05-26 12:57:23 +00:00
heaptuple.c Install new alignment code to use MAXALIGN rather than DOUBLEALIGN where 1999-07-19 07:07:29 +00:00
indextuple.c Install new alignment code to use MAXALIGN rather than DOUBLEALIGN where 1999-07-19 07:07:29 +00:00
indexvalid.c Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
printtup.c Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
scankey.c Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
tupdesc.c Reimplement parsing and storage of default expressions and constraint 1999-10-03 23:55:40 +00:00