• Tom Lane's avatar
    Undo not-so-hot decision to postpone insertion of default values into · b9ae55f2
    Tom Lane authored
    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.
    b9ae55f2
rewriteHandler.c 33.4 KB