summaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-02-01 15:43:36 +0000
committerRobert Haas <rhaas@postgresql.org>2010-02-01 15:43:36 +0000
commit42a8ab0a1429b4ba78a35ad8b210734d1561d644 (patch)
treeb1a8278c0ea4837162f8bc5d7274738d7fd02a97 /src/include/executor
parentcccfc4efc4e72e11b8583d3a7a4b123ace79e7c9 (diff)
Augment EXPLAIN output with more details on Hash nodes.
We show the number of buckets, the number of batches (and also the original number if it has changed), and the peak space used by the hash table. Minor executor changes to track peak space used.
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/hashjoin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/executor/hashjoin.h b/src/include/executor/hashjoin.h
index 4e90cbd3537..4ac6ae3ce84 100644
--- a/src/include/executor/hashjoin.h
+++ b/src/include/executor/hashjoin.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/hashjoin.h,v 1.52 2010/01/02 16:58:03 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/executor/hashjoin.h,v 1.53 2010/02/01 15:43:36 rhaas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -149,6 +149,7 @@ typedef struct HashJoinTableData
Size spaceUsed; /* memory space currently used by tuples */
Size spaceAllowed; /* upper limit for space used */
+ Size spacePeak; /* peak space used */
Size spaceUsedSkew; /* skew hash table's current space usage */
Size spaceAllowedSkew; /* upper limit for skew hashtable */