mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Since createplan.c no longer cares whether index operators are lossy, it has
no particular need to do get_op_opfamily_properties() while building an indexscan plan. Postpone that lookup until executor start. This simplifies createplan.c a lot more than it complicates nodeIndexscan.c, and makes things more uniform since we already had to do it that way for RowCompare expressions. Should be a bit faster too, at least for plans that aren't re-used many times, since we avoid palloc'ing and perhaps copying the intermediate list data structure.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.247 2008/03/25 22:42:44 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.248 2008/04/13 20:51:20 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2275,7 +2275,6 @@ mergejoinscansel(PlannerInfo *root, Node *clause,
|
||||
int op_strategy;
|
||||
Oid op_lefttype;
|
||||
Oid op_righttype;
|
||||
bool op_recheck;
|
||||
Oid opno,
|
||||
lsortop,
|
||||
rsortop,
|
||||
@ -2314,10 +2313,8 @@ mergejoinscansel(PlannerInfo *root, Node *clause,
|
||||
get_op_opfamily_properties(opno, opfamily,
|
||||
&op_strategy,
|
||||
&op_lefttype,
|
||||
&op_righttype,
|
||||
&op_recheck);
|
||||
&op_righttype);
|
||||
Assert(op_strategy == BTEqualStrategyNumber);
|
||||
Assert(!op_recheck);
|
||||
|
||||
/*
|
||||
* Look up the various operators we need. If we don't find them all, it
|
||||
|
Reference in New Issue
Block a user