Correct error in rewriter that caused SELECT count(*) FROM view
authorTom Lane <[email protected]>
Thu, 20 Apr 2000 00:31:49 +0000 (00:31 +0000)
committerTom Lane <[email protected]>
Thu, 20 Apr 2000 00:31:49 +0000 (00:31 +0000)
commit7c22d2e5f09ec325eb796ac2817e6362104e8218
tree87c48baeaa3f4c5839ecf9061643e1c96d075856
parent0156fdf9a5b763b21cce51e4374e20e4d0ed4c53
Correct error in rewriter that caused SELECT count(*) FROM view
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!
src/backend/rewrite/rewriteHandler.c