Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
5c2fb2a1
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,发现更多精彩内容 >>
提交
5c2fb2a1
编写于
1月 11, 2000
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use symbolic INDEX_MAX_KEYS in pg_type entries for oidvector
and int2vector.
上级
c2fa275d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
7 deletion
+23
-7
src/backend/catalog/genbki.sh.in
src/backend/catalog/genbki.sh.in
+18
-2
src/include/catalog/pg_type.h
src/include/catalog/pg_type.h
+5
-5
未找到文件。
src/backend/catalog/genbki.sh.in
浏览文件 @
5c2fb2a1
...
...
@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
4 1999/11/04 08:00:56 inoue
Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
5 2000/01/11 04:02:28 tgl
Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
...
...
@@ -53,7 +53,17 @@ while test $x -le $numargs ; do
done
# Get NAMEDATALEN from postgres_ext.h
NAMEDATALEN
=
`
grep
'#define.*NAMEDATALEN'
../../include/postgres_ext.h |
awk
'{ print $3 }'
`
NAMEDATALEN
=
`
grep
'#define[ ]*NAMEDATALEN'
../../include/postgres_ext.h |
awk
'{ print $3 }'
`
# Get INDEX_MAX_KEYS from config.h (who needs consistency?)
INDEXMAXKEYS
=
`
grep
'#define[ ]*INDEX_MAX_KEYS'
../../include/config.h |
awk
'{ print $3 }'
`
# NOTE: we assume here that FUNC_MAX_ARGS has the same value as INDEX_MAX_KEYS,
# and don't read it separately from config.h. This is OK because both of them
# must be equal to the length of oidvector.
INDEXMAXKEYS2
=
`
expr
$INDEXMAXKEYS
'*'
2
`
INDEXMAXKEYS4
=
`
expr
$INDEXMAXKEYS
'*'
4
`
# ----------------
# strip comments and trash from .h before we generate
...
...
@@ -80,6 +90,12 @@ sed -e "s/;[ ]*$//g" \
-e
"s/(NameData/(name/g"
\
-e
"s/(Oid/(oid/g"
\
-e
"s/NAMEDATALEN/
$NAMEDATALEN
/g"
\
-e
"s/INDEX_MAX_KEYS
\*
2/
$INDEXMAXKEYS2
/g"
\
-e
"s/INDEX_MAX_KEYS
\*
4/
$INDEXMAXKEYS4
/g"
\
-e
"s/INDEX_MAX_KEYS/
$INDEXMAXKEYS
/g"
\
-e
"s/FUNC_MAX_ARGS
\*
2/
$INDEXMAXKEYS2
/g"
\
-e
"s/FUNC_MAX_ARGS
\*
4/
$INDEXMAXKEYS4
/g"
\
-e
"s/FUNC_MAX_ARGS/
$INDEXMAXKEYS
/g"
\
|
awk
'
# ----------------
# now use awk to process remaining .h file..
...
...
src/include/catalog/pg_type.h
浏览文件 @
5c2fb2a1
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_type.h,v 1.7
4 2000/01/10 20:23:31 momjian
Exp $
* $Id: pg_type.h,v 1.7
5 2000/01/11 04:02:28 tgl
Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -174,8 +174,8 @@ DATA(insert OID = 21 ( int2 PGUID 2 5 t b t \054 0 0 int2in int2out int2
DESCR
(
"-32 thousand to 32 thousand, 2-byte storage"
);
#define INT2OID 21
DATA
(
insert
OID
=
22
(
int2vector
PGUID
32
113
f
b
t
\
054
0
21
int2vectorin
int2vectorout
int2vectorin
int2vectorout
i
_null_
));
DESCR
(
"
16 int2 integers, used internally
"
);
DATA
(
insert
OID
=
22
(
int2vector
PGUID
INDEX_MAX_KEYS
*
2
-
1
f
b
t
\
054
0
21
int2vectorin
int2vectorout
int2vectorin
int2vectorout
i
_null_
));
DESCR
(
"
array of INDEX_MAX_KEYS int2 integers, used in system tables
"
);
/*
* XXX -- the implementation of int2vector's in postgres is a hack, and will
* go away someday. until that happens, there is a case (in the
...
...
@@ -213,8 +213,8 @@ DATA(insert OID = 29 ( cid PGUID 4 10 t b t \054 0 0 cidin cidout cidin
DESCR
(
"command identifier type, sequence in transaction id"
);
#define CIDOID 29
DATA
(
insert
OID
=
30
(
oidvector
PGUID
64
193
f
b
t
\
054
0
26
oidvectorin
oidvectorout
oidvectorin
oidvectorout
i
_null_
));
DESCR
(
"array of
16
oids, used in system tables"
);
DATA
(
insert
OID
=
30
(
oidvector
PGUID
INDEX_MAX_KEYS
*
4
-
1
f
b
t
\
054
0
26
oidvectorin
oidvectorout
oidvectorin
oidvectorout
i
_null_
));
DESCR
(
"array of
INDEX_MAX_KEYS
oids, used in system tables"
);
DATA
(
insert
OID
=
32
(
SET
PGUID
-
1
-
1
f
b
t
\
054
0
0
textin
textout
textin
textout
i
_null_
));
DESCR
(
"set of tuples"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录