From d2a4a4069f1677d74267c04d558a8be83a382098 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 4 May 2007 21:29:53 +0000 Subject: Add a line to the EXPLAIN ANALYZE output for a Sort node, showing the actual sort strategy and amount of space used. By popular demand. --- src/include/utils/tuplesort.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h index c736896a9a9..b522c3ef7b6 100644 --- a/src/include/utils/tuplesort.h +++ b/src/include/utils/tuplesort.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/tuplesort.h,v 1.26 2007/05/04 01:13:45 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/tuplesort.h,v 1.27 2007/05/04 21:29:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -74,6 +74,8 @@ extern bool tuplesort_getdatum(Tuplesortstate *state, bool forward, extern void tuplesort_end(Tuplesortstate *state); +extern char *tuplesort_explain(Tuplesortstate *state); + extern int tuplesort_merge_order(long allowedMem); /* -- cgit v1.2.3