Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ec9d5d71
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,发现更多精彩内容 >>
提交
ec9d5d71
编写于
2月 06, 1998
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update now that attcacheoff initial value is -1 always.
上级
6009d70e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
13 deletion
+13
-13
src/backend/access/common/heaptuple.c
src/backend/access/common/heaptuple.c
+4
-4
src/backend/access/common/indextuple.c
src/backend/access/common/indextuple.c
+5
-5
src/include/access/heapam.h
src/include/access/heapam.h
+2
-2
src/include/access/itup.h
src/include/access/itup.h
+2
-2
未找到文件。
src/backend/access/common/heaptuple.c
浏览文件 @
ec9d5d71
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.3
4 1998/02/05 15:08:49 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.3
5 1998/02/06 20:17:49 momjian
Exp $
*
* NOTES
* The old interface functions have been converted to macros
...
...
@@ -428,7 +428,7 @@ nocachegetattr(HeapTuple tup,
#if IN_MACRO
/* This is handled in the macro */
if
(
att
[
attnum
]
->
attcacheoff
>
0
)
if
(
att
[
attnum
]
->
attcacheoff
!=
-
1
)
{
return
(
Datum
)
fetchatt
(
&
(
att
[
attnum
]),
...
...
@@ -512,7 +512,7 @@ nocachegetattr(HeapTuple tup,
*/
if
(
!
slow
)
{
if
(
att
[
attnum
]
->
attcacheoff
>
0
)
if
(
att
[
attnum
]
->
attcacheoff
!=
-
1
)
{
return
(
Datum
)
fetchatt
(
&
(
att
[
attnum
]),
tp
+
att
[
attnum
]
->
attcacheoff
);
...
...
@@ -650,7 +650,7 @@ nocachegetattr(HeapTuple tup,
}
/* If we know the next offset, we can skip the rest */
if
(
usecache
&&
att
[
i
]
->
attcacheoff
>
0
)
if
(
usecache
&&
att
[
i
]
->
attcacheoff
!=
-
1
)
off
=
att
[
i
]
->
attcacheoff
;
else
{
...
...
src/backend/access/common/indextuple.c
浏览文件 @
ec9d5d71
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.2
5 1998/02/05 17:22:23
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.2
6 1998/02/06 20:17:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -181,7 +181,7 @@ nocache_index_getattr(IndexTuple tup,
{
return
(
Datum
)
fetchatt
(
&
(
att
[
0
]),
(
char
*
)
tup
+
data_off
);
}
if
(
att
[
attnum
]
->
attcacheoff
>
0
)
if
(
att
[
attnum
]
->
attcacheoff
!=
-
1
)
{
return
(
Datum
)
fetchatt
(
&
(
att
[
attnum
]),
(
char
*
)
tup
+
data_off
+
...
...
@@ -254,7 +254,7 @@ nocache_index_getattr(IndexTuple tup,
if
(
!
slow
)
{
if
(
att
[
attnum
]
->
attcacheoff
>
0
)
if
(
att
[
attnum
]
->
attcacheoff
!=
-
1
)
{
return
(
Datum
)
fetchatt
(
&
(
att
[
attnum
]),
tp
+
att
[
attnum
]
->
attcacheoff
);
...
...
@@ -290,7 +290,7 @@ nocache_index_getattr(IndexTuple tup,
att
[
0
]
->
attcacheoff
=
0
;
while
(
att
[
j
]
->
attcacheoff
>
0
)
while
(
att
[
j
]
->
attcacheoff
!=
-
1
)
j
++
;
if
(
!
VARLENA_FIXED_SIZE
(
att
[
j
-
1
]))
...
...
@@ -366,7 +366,7 @@ nocache_index_getattr(IndexTuple tup,
}
/* If we know the next offset, we can skip the rest */
if
(
usecache
&&
att
[
i
]
->
attcacheoff
>
0
)
if
(
usecache
&&
att
[
i
]
->
attcacheoff
!=
-
1
)
off
=
att
[
i
]
->
attcacheoff
;
else
{
...
...
src/include/access/heapam.h
浏览文件 @
ec9d5d71
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heapam.h,v 1.2
8 1998/02/01 05:38:38
momjian Exp $
* $Id: heapam.h,v 1.2
9 1998/02/06 20:18:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -95,7 +95,7 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
((isnull) ? (*(isnull) = false) : (dummyret)NULL), \
HeapTupleNoNulls(tup) ? \
( \
((tupleDesc)->attrs[(attnum)-1]->attcacheoff
> 0
|| \
((tupleDesc)->attrs[(attnum)-1]->attcacheoff
!= -1
|| \
(attnum) == 1) ? \
( \
(Datum)fetchatt(&((tupleDesc)->attrs[(attnum)-1]), \
...
...
src/include/access/itup.h
浏览文件 @
ec9d5d71
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: itup.h,v 1.1
1 1998/02/01 05:38:39
momjian Exp $
* $Id: itup.h,v 1.1
2 1998/02/06 20:18:01
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -123,7 +123,7 @@ typedef struct PredInfo
*(isnull) = false, \
IndexTupleNoNulls(tup) ? \
( \
((tupleDesc)->attrs[(attnum)-1]->attcacheoff
> 0
|| \
((tupleDesc)->attrs[(attnum)-1]->attcacheoff
!= -1
|| \
(attnum) == 1) ? \
( \
(Datum)fetchatt(&((tupleDesc)->attrs[(attnum)-1]), \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录