• Tom Lane's avatar
    Correct error in rewriter that caused SELECT count(*) FROM view · 7c22d2e5
    Tom Lane authored
    to give wrong results: it should be looking at inJoinSet not inFromCl.
    Also, make 'modified' flag be local to ApplyRetrieveRule: we should
    append a rule's quals to the query iff that particular rule applies,
    not if we have fired any previously-considered rule for the query!
    7c22d2e5
rewriteHandler.c 52.6 KB