]> granicus.if.org Git - postgresql/commit
Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Sep 2011 15:29:18 +0000 (11:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Sep 2011 15:30:11 +0000 (11:30 -0400)
commitf1972723654947f70409716757aa83f3d93c8fab
treed4f63965f021b29c30702df069941fb340074dcc
parent4893552e21b93149bb60f6204673cce855881a05
Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps.

This provides information about the numbers of tuples that were visited
but not returned by table scans, as well as the numbers of join tuples
that were considered and discarded within a join plan node.

There is still some discussion going on about the best way to report counts
for outer-join situations, but I think most of what's in the patch would
not change if we revise that, so I'm going to go ahead and commit it as-is.

Documentation changes to follow (they weren't in the submitted patch
either).

Marko Tiikkaja, reviewed by Marc Cousin, somewhat revised by Tom
20 files changed:
src/backend/commands/explain.c
src/backend/commands/trigger.c
src/backend/executor/execAmi.c
src/backend/executor/execMain.c
src/backend/executor/execProcnode.c
src/backend/executor/execScan.c
src/backend/executor/instrument.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeBitmapAnd.c
src/backend/executor/nodeBitmapHeapscan.c
src/backend/executor/nodeBitmapIndexscan.c
src/backend/executor/nodeBitmapOr.c
src/backend/executor/nodeGroup.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeMergejoin.c
src/backend/executor/nodeNestloop.c
src/include/executor/instrument.h
src/include/nodes/execnodes.h