diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-01 06:01:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-01 06:01:20 +0000 |
commit | 8f0a9e85b31e67a64604c19a061e91ad1c92b041 (patch) | |
tree | d771f40b07f2f0f19401e6a0cc73adf436d26bb3 /src/backend/nodes/copyfuncs.c | |
parent | f8c109528cc6e7a6230b86e75374e0210db2ba56 (diff) | |
download | postgresql-8f0a9e85b31e67a64604c19a061e91ad1c92b041.tar.gz postgresql-8f0a9e85b31e67a64604c19a061e91ad1c92b041.zip |
Second thoughts dept: arrange to cache mergejoin scan selectivity
in RestrictInfo nodes, instead of recomputing on every use.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 9838d985531..570fa285234 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.163 2002/02/26 22:47:05 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.164 2002/03/01 06:01:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1406,6 +1406,8 @@ _copyRestrictInfo(RestrictInfo *from) */ newnode->left_pathkey = NIL; newnode->right_pathkey = NIL; + newnode->left_mergescansel = from->left_mergescansel; + newnode->right_mergescansel = from->right_mergescansel; newnode->hashjoinoperator = from->hashjoinoperator; newnode->left_bucketsize = from->left_bucketsize; newnode->right_bucketsize = from->right_bucketsize; |