aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2025-03-05 10:27:31 -0500
committerPeter Geoghegan <pg@bowt.ie>2025-03-05 10:27:31 -0500
commitd00107cd63e780753aa25563fa37603369997d0c (patch)
tree66f156ea5785fe6bf79e3b0861aced63ed484c20 /src/backend/commands
parent4603903d294bbdd644afecf9b5970827db6d1ff5 (diff)
downloadpostgresql-d00107cd63e780753aa25563fa37603369997d0c.tar.gz
postgresql-d00107cd63e780753aa25563fa37603369997d0c.zip
Revert "Show index search count in EXPLAIN ANALYZE."
This reverts commit 5ead85fbc81162ab1594f656b036a22e814f96b3. This commit shows test failures with debug_parallel_query=regress. The underlying issue needs to be debugged, so revert for now.
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/explain.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 78d5d0b67c4..d8a7232cedb 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -13,7 +13,6 @@
*/
#include "postgres.h"
-#include "access/relscan.h"
#include "access/xact.h"
#include "catalog/pg_type.h"
#include "commands/createas.h"
@@ -126,7 +125,6 @@ static void show_recursive_union_info(RecursiveUnionState *rstate,
static void show_memoize_info(MemoizeState *mstate, List *ancestors,
ExplainState *es);
static void show_hashagg_info(AggState *aggstate, ExplainState *es);
-static void show_indexsearches_info(PlanState *planstate, ExplainState *es);
static void show_tidbitmap_info(BitmapHeapScanState *planstate,
ExplainState *es);
static void show_instrumentation_count(const char *qlabel, int which,
@@ -2098,7 +2096,6 @@ ExplainNode(PlanState *planstate, List *ancestors,
if (plan->qual)
show_instrumentation_count("Rows Removed by Filter", 1,
planstate, es);
- show_indexsearches_info(planstate, es);
break;
case T_IndexOnlyScan:
show_scan_qual(((IndexOnlyScan *) plan)->indexqual,
@@ -2115,12 +2112,10 @@ ExplainNode(PlanState *planstate, List *ancestors,
if (es->analyze)
ExplainPropertyFloat("Heap Fetches", NULL,
planstate->instrument->ntuples2, 0, es);
- show_indexsearches_info(planstate, es);
break;
case T_BitmapIndexScan:
show_scan_qual(((BitmapIndexScan *) plan)->indexqualorig,
"Index Cond", planstate, ancestors, es);
- show_indexsearches_info(planstate, es);
break;
case T_BitmapHeapScan:
show_scan_qual(((BitmapHeapScan *) plan)->bitmapqualorig,
@@ -3861,41 +3856,6 @@ show_hashagg_info(AggState *aggstate, ExplainState *es)
}
/*
- * Show the total number of index searches performed by a
- * IndexScan/IndexOnlyScan/BitmapIndexScan node
- */
-static void
-show_indexsearches_info(PlanState *planstate, ExplainState *es)
-{
- Plan *plan = planstate->plan;
- struct IndexScanDescData *scanDesc = NULL;
- uint64 nsearches = 0;
-
- if (!es->analyze)
- return;
-
- switch (nodeTag(plan))
- {
- case T_IndexScan:
- scanDesc = ((IndexScanState *) planstate)->iss_ScanDesc;
- break;
- case T_IndexOnlyScan:
- scanDesc = ((IndexOnlyScanState *) planstate)->ioss_ScanDesc;
- break;
- case T_BitmapIndexScan:
- scanDesc = ((BitmapIndexScanState *) planstate)->biss_ScanDesc;
- break;
- default:
- break;
- }
-
- if (scanDesc)
- nsearches = scanDesc->nsearches;
-
- ExplainPropertyUInteger("Index Searches", NULL, nsearches, es);
-}
-
-/*
* Show exact/lossy pages for a BitmapHeapScan node
*/
static void