Re: Showing primitive index scan count in EXPLAIN ANALYZE (for skip scan and SAOP scans)
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-08-27T17:45:08Z
Lists: pgsql-hackers
On Tue, Aug 27, 2024 at 11:16 AM Peter Geoghegan <pg@bowt.ie> wrote: > On Thu, Aug 15, 2024 at 3:22 PM Peter Geoghegan <pg@bowt.ie> wrote: > > Attached patch has EXPLAIN ANALYZE display the total number of > > primitive index scans for all 3 kinds of index scan node. > > Attached is v2, which fixes bitrot. > > v2 also uses new terminology. EXPLAIN ANALYZE will now show "Index > Searches: N", not "Primitive Index Scans: N". Although there is > limited precedent for using the primitive scan terminology, I think > that it's a bit unwieldy. I do like "Index Searches" better than "Primitive Index Scans." But I think Matthias had some good points about this being btree-specific. I'm not sure whether he was completely correct, but you seemed to just dismiss his argument and say "well, that can't be done," which doesn't seem convincing to me at all. If, for non-btree indexes, the number of index searches will always be the same as the loop count, then surely there is some way to avoid cluttering the output for non-btree indexes with output that can never be of any use. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Show index search count in EXPLAIN ANALYZE, take 2.
- 0fbceae841cb 18.0 landed
-
Show index search count in EXPLAIN ANALYZE.
- 5ead85fbc811 18.0 landed
-
Allow usage of match_orclause_to_indexcol() for joins
- 627d63419e22 18.0 cited
-
Fix nbtree pgstats accounting with parallel scans.
- c00c54a9ac1e 18.0 landed
- fb4f5e58af97 17.0 landed
-
Enhance nbtree ScalarArrayOp execution.
- 5bf748b86bc6 17.0 cited
-
Fix EXPLAIN ANALYZE of hash join when the leader doesn't participate.
- 5bcf389ecfd4 11.0 cited