summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2002-03-01 06:01:20 +0000
committerTom Lane2002-03-01 06:01:20 +0000
commit8f0a9e85b31e67a64604c19a061e91ad1c92b041 (patch)
treed771f40b07f2f0f19401e6a0cc73adf436d26bb3 /src/include
parentf8c109528cc6e7a6230b86e75374e0210db2ba56 (diff)
Second thoughts dept: arrange to cache mergejoin scan selectivity
in RestrictInfo nodes, instead of recomputing on every use.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/nodes/relation.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h
index c301d39b2a1..e14f1ea4e83 100644
--- a/src/include/nodes/relation.h
+++ b/src/include/nodes/relation.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: relation.h,v 1.61 2001/11/05 17:46:34 momjian Exp $
+ * $Id: relation.h,v 1.62 2002/03/01 06:01:20 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -521,6 +521,10 @@ typedef struct RestrictInfo
List *left_pathkey; /* canonical pathkey for left side */
List *right_pathkey; /* canonical pathkey for right side */
+ /* cache space for mergeclause processing; -1 if not yet set */
+ Selectivity left_mergescansel; /* fraction of left side to scan */
+ Selectivity right_mergescansel; /* fraction of right side to scan */
+
/* valid if clause is hashjoinable, else InvalidOid: */
Oid hashjoinoperator; /* copy of clause operator */