aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/relation.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-03-26 17:15:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-03-26 17:15:35 +0000
commitf38fbf31f5719bb84b18042a7f415a4f20db2bfa (patch)
tree9de323400560bd677e4402727b1f6bb3ec9834e9 /src/include/nodes/relation.h
parentee4c187f6471af5f71fd5dd12021fa8d7c4fce11 (diff)
downloadpostgresql-f38fbf31f5719bb84b18042a7f415a4f20db2bfa.tar.gz
postgresql-f38fbf31f5719bb84b18042a7f415a4f20db2bfa.zip
If we expect a hash join to be performed in multiple batches, suppress
"physical tlist" optimization on the outer relation (ie, force a projection step to occur in its scan). This avoids storing useless column values when the outer relation's tuples are written to temporary batch files. Modified version of a patch by Michael Henderson and Ramon Lawrence.
Diffstat (limited to 'src/include/nodes/relation.h')
-rw-r--r--src/include/nodes/relation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h
index 4f1bc4067d2..cf567b99746 100644
--- a/src/include/nodes/relation.h
+++ b/src/include/nodes/relation.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.170 2009/03/05 23:06:45 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.171 2009/03/26 17:15:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -845,6 +845,7 @@ typedef struct HashPath
{
JoinPath jpath;
List *path_hashclauses; /* join clauses used for hashing */
+ int num_batches; /* number of batches expected */
} HashPath;
/*