Undo not-so-hot decision to postpone insertion of default values into

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b9ae55f2aabb21d9c3d34554b5a19be6f8770adf
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-04-05T05:47:05Z
Releases: 7.3.1
Undo not-so-hot decision to postpone insertion of default values into
INSERT statements to the planner.  Taking it out of the parser was right
(so that defaults don't get into stored rules), but it has to happen
before rewrite rule expansion, else references to NEW.field behave
incorrectly.  Accordingly, add a step to the rewriter to insert defaults
just before rewrite-rule expansion.

Files

PathChange+/−
src/backend/optimizer/prep/preptlist.c modified +49 −263
src/backend/rewrite/rewriteHandler.c modified +299 −2