mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Second thoughts dept: arrange to cache mergejoin scan selectivity
in RestrictInfo nodes, instead of recomputing on every use.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user