返回首页

gbase数据、南大通用产品文档:GBase8c对象标识符类型

更新日期:2024年09月11日

GBase 8c 内部使用对象标识符(OID)
,作为系统表的主键。系统不会给用户自创的表
增加OID 字段。OID 类型代表对象标识符。
目前OID 类型用一个四字节的无符号整数实现。因此,不建议在创建的表中使用OID
字段做主键。
名称
引用
描述
示例

GBase 8c SQL 参考手册
南大通用数据技术股份有限公司
93
OID
——
数字化的对象标识符。
564182
CID
——
命令标识符。GBase 8c 系统字段
cmin 和cmax 的数据类型。长度
为32 位。
——
XID
——
事务标识符。GBase 8c 系统字段
xmin 和xmax 的数据类型。长度
为64 位。
——
TID
——
行标识符。GBase 8c 系统表字段
ctid 的数据类型。TID 是一对数
值(块号,块内的行索引)
,标识
该行在其所在表内的物理位置。
——
REGCONFI G
pg_ts_conf ig
文本搜索配置
english
REGDICTIO
NARY
pg_ts_dict
文本搜索字典
simple
REGOPER
pg_operat or
操作符名
——
REGOPERA
TOR
pg_operat or
带参数类型的操作符
*(integer,integer)或
- (NONE,integer)
REGPROC
pg_proc
函数名称
sum
REGPROCE
DURE
pg_proc
带参数类型的函数
sum(int4)
REGCLASS
pg_class
关系名
pg_type
REGTYPE
pg_type
数据类型名
integer
OID 类型:主要作为数据库系统表中字段使用。示例:
gbase=# SELECT oid FROM pg_class WHERE relname = 'pg_type';
1247
OID 别名类型REGCLASS:主要用于对象OID 值的简化查找。示例:
gbase=# SELECT attrelid,attname,atttypid,attstattarget FROM pg_attribute WHERE
attrelid = 'pg_type'::REGCLASS;
1247 | xc_node_id
|
23 |
0
1247 | tableoid
|
26 |
0

GBase 8c SQL 参考手册
南大通用数据技术股份有限公司
94
1247 | cmax
|
29 |
0
1247 | xmax
|
28 |
0
1247 | cmin
|
29 |
0
1247 | xmin
|
28 |
0
1247 | oid
|
26 |
0
1247 | ctid
|
27 |
0
1247 | typname
|
19 |
-1
1247 | typnamespace
|
26 |
-1
1247 | typowner
|
26 |
-1
1247 | typlen
|
21 |
-1
1247 | typbyval
|
16 |
-1
1247 | typtype
|
18 |
-1
1247 | typcategory
|
18 |
-1
1247 | typispreferred |
16 |
-1
1247 | typisdefined
|
16 |
-1
1247 | typdelim
|
18 |
-1
1247 | typrelid
|
26 |
-1
1247 | typelem
|
26 |
-1
1247 | typarray
|
26 |
-1
1247 | typinput
|
24 |
-1
1247 | typoutput
|
24 |
-1
1247 | typreceive
|
24 |
-1
1247 | typsend
|
24 |
-1
1247 | typmodin
|
24 |
-1
1247 | typmodout
|
24 |
-1
1247 | typanalyze
|
24 |
-1
1247 | typalign
|
18 |
-1
1247 | typstorage
|
18 |
-1
1247 | typnotnull
|
16 |
-1
1247 | typbasetype
|
26 |
-1
1247 | typtypmod
|
23 |
-1
1247 | typndims
|
23 |
-1
1247 | typcollation
|
26 |
-1
1247 | typdefaultbin
|
194 |
-1
1247 | typdefault
|
25 |
-1
1247 | typacl
|
1034 |
-1

本章中说明了两种类型的环境变量:
特定于 GBase 8s 的环境变量
要使用 GBase 8s 产品时,设置 GBase 8s 环境变量。每个 GBase 8s 产品出版物
都会指定一些环境变量,您必须设置它们才能使用该产品。
与特定操作系统一起使用的环境变量
GBase 8s 产品依赖于某些标准操作系统环境变量的正确设置。
例如:
必须总是设置
PATH 环境变量。
在 UNIX™ 环境中,可能还需要设置 TERMCAP 或 TERMINFO 环境变量才能有效
地使用某些产品。
《GBase 8s GLS 用户指南》
中描述了支持非缺省语言环境的 GLS 环境变量。
表 1 的
环境变量列表中包含了 GLS 变量。
数据库服务器使用在初始化该数据库服务器时生效的环境变量。
onstat - g env 命令列示生效的环境设置。
提示: 特定于客户机应用程序或 SQL API 的其他环境变量可能在该产品的出版物中
说明。
重要: 在初始化数据库和创建 sysmaster 数据库时,不要在用户 gbasedbt 的主目
录(也不要在该目录的 .gbasedbt 文件中)设置任何环境变量。

SQLColumnPrivileges 返回指定表的列和相关权限的列表。
驱动程序将返回信息作为在指定
的 hstmt 上设置的结果。
下表描述了 SQLColumnPrivileges 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08S01
-11020
Communication-link failure
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1090
-11071
Invalid string or buffer length
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
S1C00
-11300
SQL_DEFAULT_PARAM not supported
08S01
-11301
A protocol error has been detected. Current connection is
closed.
S1000
-11310
Create and Drop must be executed within a ServerOnly
Connection
S1000
-11320
Syntax error
S1000
-11323
The statement contained an escape clause not supported by
this database driver