Remove dead show_sort_info function.(closes
@@ -105,8 +105,6 @@ static void show_upper_qual(List *qual, const char *qlabel, Plan *plan,
static void show_sort_keys(Plan *sortplan, int nkeys, AttrNumber *keycols,
const char *qlabel,
StringInfo str, int indent, ExplainState *es);
-static void show_sort_info(SortState *sortstate,
- StringInfo str, int indent, ExplainState *es);
static const char *explain_get_index_name(Oid indexId);
static void
@@ -2264,33 +2262,6 @@ explain_partition_selector(PartitionSelector *ps, Plan *parent,
}
}
-/*
- * If it's EXPLAIN ANALYZE, show tuplesort explain info for a sort node
- */
-static void
-show_sort_info(SortState *sortstate,
- StringInfo str, int indent, ExplainState *es)
-{
- Assert(IsA(sortstate, SortState));
- if (es->printAnalyze && sortstate->sort_Done &&
- sortstate->tuplesortstate != NULL &&
- (gp_enable_mk_sort ?
- (void *) sortstate->tuplesortstate->sortstore_mk : (void *) sortstate->tuplesortstate->sortstore) != NULL)
- {
- char *sortinfo;
- int i;
-
- if (gp_enable_mk_sort)
- sortinfo = tuplesort_explain_mk(sortstate->tuplesortstate->sortstore_mk);
- else
- sortinfo = tuplesort_explain(sortstate->tuplesortstate->sortstore);
- for (i = 0; i < indent; i++)
- appendStringInfo(str, " ");
- appendStringInfo(str, " %s\n", sortinfo);
- pfree(sortinfo);
- }
-}
-
/*
* Fetch the name of an index in an EXPLAIN
*
