Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
15903a1e
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,发现更多精彩内容 >>
提交
15903a1e
编写于
2月 21, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Comment improvements.
上级
be92ad49
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
14 deletion
+20
-14
src/include/access/htup.h
src/include/access/htup.h
+11
-7
src/include/access/itup.h
src/include/access/itup.h
+2
-2
src/include/access/nbtree.h
src/include/access/nbtree.h
+5
-3
src/include/storage/bufpage.h
src/include/storage/bufpage.h
+2
-2
未找到文件。
src/include/access/htup.h
浏览文件 @
15903a1e
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: htup.h,v 1.4
5 2001/01/24 19:43:19
momjian Exp $
* $Id: htup.h,v 1.4
6 2001/02/21 19:07:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -32,7 +32,9 @@
#define MaxHeapAttributeNumber 1600
/* 8 * 200 */
/*
* to avoid wasting space, the attributes should be layed out in such a
* This is the on-disk copy of the tuple.
*
* To avoid wasting space, the attributes should be layed out in such a
* way to reduce structure padding.
*/
typedef
struct
HeapTupleHeaderData
...
...
@@ -51,12 +53,12 @@ typedef struct HeapTupleHeaderData
uint16
t_infomask
;
/* various infos */
uint8
t_hoff
;
/* sizeof tuple header */
uint8
t_hoff
;
/* sizeof
()
tuple header */
/* ^ - 31 bytes - ^ */
bits8
t_bits
[
MinHeapTupleBitmapSize
/
8
];
/* bit map of
domain
s */
/* bit map of
NULL
s */
/* MORE DATA FOLLOWS AT END OF STRUCT */
}
HeapTupleHeaderData
;
...
...
@@ -174,6 +176,8 @@ typedef struct xl_heap_clean
#define FirstLowInvalidHeapAttributeNumber (-8)
/*
* This is the in-memory copy of the tuple.
*
* This new HeapTuple for version >= 6.5 and this is why it was changed:
*
* 1. t_len moved off on-disk tuple data - ItemIdData is used to get len;
...
...
@@ -190,10 +194,10 @@ typedef struct xl_heap_clean
typedef
struct
HeapTupleData
{
uint32
t_len
;
/* length of *t_data */
ItemPointerData
t_self
;
/* SelfItemPointer */
ItemPointerData
t_self
;
/* SelfItemPointer */
Oid
t_tableOid
;
/* table the tuple came from */
MemoryContext
t_datamcxt
;
/* mcxt in which allocated
*/
HeapTupleHeader
t_data
;
/* -> tuple header and data */
MemoryContext
t_datamcxt
;
/* memory context of allocation
*/
HeapTupleHeader
t_data
;
/* -> tuple header and data */
}
HeapTupleData
;
typedef
HeapTupleData
*
HeapTuple
;
...
...
src/include/access/itup.h
浏览文件 @
15903a1e
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: itup.h,v 1.2
8 2001/01/24 19:43:19
momjian Exp $
* $Id: itup.h,v 1.2
9 2001/02/21 19:07:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,7 +22,7 @@
typedef
struct
IndexTupleData
{
ItemPointerData
t_tid
;
/* reference TID to
base
tuple */
ItemPointerData
t_tid
;
/* reference TID to
heap
tuple */
/*
* t_info is layed out in the following fashion:
...
...
src/include/access/nbtree.h
浏览文件 @
15903a1e
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: nbtree.h,v 1.5
1 2001/02/07 23:34:18 vadim
Exp $
* $Id: nbtree.h,v 1.5
2 2001/02/21 19:07:04 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -37,15 +37,17 @@ typedef struct BTPageOpaqueData
BlockNumber
btpo_parent
;
uint16
btpo_flags
;
}
BTPageOpaqueData
;
typedef
BTPageOpaqueData
*
BTPageOpaque
;
/* Bits defined in btpo_flags */
#define BTP_LEAF (1 << 0)
/* It's a leaf page */
#define BTP_ROOT (1 << 1)
/* It's the root page (has no parent) */
#define BTP_FREE (1 << 2)
/* not currently used... */
#define BTP_META (1 << 3)
/* Set in the meta-page only */
#define BTP_REORDER (1 << 4)
/* items must be re-ordered */
}
BTPageOpaqueData
;
typedef
BTPageOpaqueData
*
BTPageOpaque
;
#define BTREE_METAPAGE 0
/* first page is meta */
#define BTREE_MAGIC 0x053162
...
...
src/include/storage/bufpage.h
浏览文件 @
15903a1e
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: bufpage.h,v 1.
39 2001/01/24 19:43:27
momjian Exp $
* $Id: bufpage.h,v 1.
40 2001/02/21 19:07:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -23,7 +23,7 @@
#include "access/xlog.h"
/*
*
a
postgres disk page is an abstraction layered on top of a postgres
*
A
postgres disk page is an abstraction layered on top of a postgres
* disk block (which is simply a unit of i/o, see block.h).
*
* specifically, while a disk block can be unformatted, a postgres
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录