Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> [ EXPLAIN fails on a SELECT ... EXCEPT ... ]
This looks to be another artifact of the fact that EXPLAIN
doesn't invoke the rewriter.
It looks to me like the rewrite-invocation section of
pg_parse_and_plan() needs to be pulled out as a subroutine
so that explain.c can invoke it. Comments? Where should
the new subroutine go? (Probably not in postgres.c...)
regards, tom lane