Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9be7ea08
Commit
9be7ea08
authored
Feb 28, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded indxqual field in IndexScanState, and the useless work
spent initializing it during indexscan startup.
parent
303f4649
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeIndexscan.c
+7
-4
src/include/nodes/execnodes.h
src/include/nodes/execnodes.h
+3
-2
No files found.
src/backend/executor/nodeIndexscan.c
View file @
9be7ea08
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.9
1 2004/02/03 17:34:02
tgl Exp $
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.9
2 2004/02/28 19:46:05
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -669,6 +669,12 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
/*
* initialize child expressions
*
* Note: we don't initialize all of the indxqual expression, only the
* sub-parts corresponding to runtime keys (see below). The indxqualorig
* expression is always initialized even though it will only be used in
* some uncommon cases --- would be nice to improve that. (Problem is
* that any SubPlans present in the expression must be found now...)
*/
indexstate
->
ss
.
ps
.
targetlist
=
(
List
*
)
ExecInitExpr
((
Expr
*
)
node
->
scan
.
plan
.
targetlist
,
...
...
@@ -676,9 +682,6 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
indexstate
->
ss
.
ps
.
qual
=
(
List
*
)
ExecInitExpr
((
Expr
*
)
node
->
scan
.
plan
.
qual
,
(
PlanState
*
)
indexstate
);
indexstate
->
indxqual
=
(
List
*
)
ExecInitExpr
((
Expr
*
)
node
->
indxqual
,
(
PlanState
*
)
indexstate
);
indexstate
->
indxqualorig
=
(
List
*
)
ExecInitExpr
((
Expr
*
)
node
->
indxqualorig
,
(
PlanState
*
)
indexstate
);
...
...
src/include/nodes/execnodes.h
View file @
9be7ea08
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.11
1 2004/01/22 02:23:21
tgl Exp $
* $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.11
2 2004/02/28 19:46:06
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -765,8 +765,10 @@ typedef ScanState SeqScanState;
/* ----------------
* IndexScanState information
*
* indxqualorig execution state for indxqualorig expressions
* NumIndices number of indices in this scan
* IndexPtr current index in use
* MarkIndexPtr IndexPtr for marked scan point
* ScanKeys Skey structures to scan index rels
* NumScanKeys array of no of keys in each Skey struct
* RuntimeKeyInfo array of array of exprstates for Skeys
...
...
@@ -783,7 +785,6 @@ typedef ScanState SeqScanState;
typedef
struct
IndexScanState
{
ScanState
ss
;
/* its first field is NodeTag */
List
*
indxqual
;
List
*
indxqualorig
;
int
iss_NumIndices
;
int
iss_IndexPtr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment