OSDN Git Service

Fix EXPLAIN ANALYZE bug noted by Wiebe Cazemier: although we were
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Oct 2005 16:43:33 +0000 (16:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Oct 2005 16:43:33 +0000 (16:43 +0000)
commit9fc24f2bf6e549cab53c462adb9100cb5ad8bf2b
treee5c50d92be819fa9bc0b9b16053f00a6112ad093
parentef3b7cd3282a50b382b0ae76f8b6fe541d52b857
Fix EXPLAIN ANALYZE bug noted by Wiebe Cazemier: although we were
properly advancing the CommandCounter between multiple sub-queries
generated by rules, we forgot to update the snapshot being used, so
that the successive sub-queries didn't actually see each others'
results.  This is still not *exactly* like the semantics of normal
execution of the same queries, in that we don't take new transaction
snapshots and hence don't see changes from concurrently committed
commands, but I think that's OK and probably even preferable for
EXPLAIN ANALYZE.
src/backend/commands/explain.c
src/backend/commands/prepare.c