Craig Ringer <craig@2ndquadrant.com> writes:
> We don't rerun rewrite on plan invalidation.
Don't we? plancache.c certainly does, in fact it starts from the raw
grammar output. Skipping the rewriter would mean failing to respond
to CREATE OR REPLACE VIEW, for example.
regards, tom lane