Coerce unknown-literal-constant default values to the column type during
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jul 2003 17:21:27 +0000 (17:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jul 2003 17:21:27 +0000 (17:21 +0000)
commitbb8f0be9d8d306e7cf5e601a22a9e5d903adbb00
tree2095f64373a4df4e5bf251c17b59459eb452a4ab
parent8b3230bf6871189924ac740e50edcfdc18402669
Coerce unknown-literal-constant default values to the column type during
CREATE TABLE (or ALTER TABLE SET DEFAULT), rather than postponing it to
the time that the default is inserted into an INSERT command by the
rewriter.  This reverses an old decision that was intended to make the
world safe for writing
f1 timestamp default 'now'
but in fact merely made the failure modes subtle rather than obvious.
Per recent trouble report and followup discussion.

initdb forced since there is a chance that stored default expressions
will change.
src/backend/catalog/heap.c
src/backend/rewrite/rewriteHandler.c
src/include/catalog/catversion.h