mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +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:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.324 2008/03/21 22:41:48 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.325 2008/04/13 20:51:20 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@@ -372,8 +372,6 @@ _outIndexScan(StringInfo str, IndexScan *node)
|
||||
WRITE_OID_FIELD(indexid);
|
||||
WRITE_NODE_FIELD(indexqual);
|
||||
WRITE_NODE_FIELD(indexqualorig);
|
||||
WRITE_NODE_FIELD(indexstrategy);
|
||||
WRITE_NODE_FIELD(indexsubtype);
|
||||
WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
|
||||
}
|
||||
|
||||
@@ -387,8 +385,6 @@ _outBitmapIndexScan(StringInfo str, BitmapIndexScan *node)
|
||||
WRITE_OID_FIELD(indexid);
|
||||
WRITE_NODE_FIELD(indexqual);
|
||||
WRITE_NODE_FIELD(indexqualorig);
|
||||
WRITE_NODE_FIELD(indexstrategy);
|
||||
WRITE_NODE_FIELD(indexsubtype);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user