Thread: pgsql-server: Don't try to rewrite NEW references in a utility statement

pgsql-server: Don't try to rewrite NEW references in a utility statement

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Don't try to rewrite NEW references in a utility statement in a rule.
There won't be any, and in fact there won't even be an RTE for NEW,
which was leading to a core dump in CVS tip.  7.4 and earlier manage
not to crash when applying ResolveNew in this scenario, but I think
it was just good fortune that they didn't.  Per report from
Bernd Helmle.

Modified Files:
--------------
    pgsql-server/src/backend/rewrite:
        rewriteHandler.c (r1.140 -> r1.141)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/rewrite/rewriteHandler.c.diff?r1=1.140&r2=1.141)