Prevent bitmap heap scans from showing unnecessary block info in EXPLAIN ANALYZE.
authorFujii Masao <fujii@postgresql.org>
Mon, 14 Jul 2014 11:40:14 +0000 (20:40 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 14 Jul 2014 11:40:14 +0000 (20:40 +0900)
commitd4635b16fe3d0fae65d7735d9e926a1b20a90781
treec77b56bf3ccbee40c4b7d270ef9214fbbc0bc287
parentab774859456eb441ef049bf66af38b259cbdacce
Prevent bitmap heap scans from showing unnecessary block info in EXPLAIN ANALYZE.

EXPLAIN ANALYZE shows the information of the numbers of exact/lossy blocks which
bitmap heap scan processes. But, previously, when those numbers were both zero,
it displayed only the prefix "Heap Blocks:" in TEXT output format. This is strange
and would confuse the users. So this commit suppresses such unnecessary information.

Backpatch to 9.4 where EXPLAIN ANALYZE was changed so that such information was
displayed.

Etsuro Fujita
src/backend/commands/explain.c