Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
9be7ea08
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9be7ea08
编写于
2月 28, 2004
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unneeded indxqual field in IndexScanState, and the useless work
spent initializing it during indexscan startup.
上级
303f4649
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
6 deletion
+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
未找到文件。
src/backend/executor/nodeIndexscan.c
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录