Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
5594d146
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,发现更多精彩内容 >>
提交
5594d146
编写于
6月 28, 2011
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add composite-type attributes to information_schema.element_types view
上级
c533c147
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
7 deletion
+10
-7
doc/src/sgml/information_schema.sgml
doc/src/sgml/information_schema.sgml
+6
-4
src/backend/catalog/information_schema.sql
src/backend/catalog/information_schema.sql
+4
-3
未找到文件。
doc/src/sgml/information_schema.sgml
浏览文件 @
5594d146
...
...
@@ -2147,7 +2147,7 @@
<para>
The view <literal>element_types</literal> contains the data type
descriptors of the elements of arrays. When a table column,
descriptors of the elements of arrays. When a table column,
composite-type attribute,
domain, function parameter, or function return value is defined to
be of an array type, the respective information schema view only
contains <literal>ARRAY</literal> in the column
...
...
@@ -2212,9 +2212,11 @@ ORDER BY c.ordinal_position;
<entry>
The type of the object that uses the array being described: one
of <literal>TABLE</literal> (the array is used by a column of
that table), <literal>DOMAIN</literal> (the array is used by
that domain), <literal>ROUTINE</literal> (the array is used by
a parameter or the return data type of that function).
that table), <literal>USER-DEFINED TYPE</literal> (the array is
used by an attribute of that composite type),
<literal>DOMAIN</literal> (the array is used by that domain),
<literal>ROUTINE</literal> (the array is used by a parameter or
the return data type of that function).
</entry>
</row>
...
...
src/backend/catalog/information_schema.sql
浏览文件 @
5594d146
...
...
@@ -2467,12 +2467,13 @@ CREATE VIEW element_types AS
FROM
pg_namespace
n
,
pg_type
at
,
pg_namespace
nbt
,
pg_type
bt
,
(
/* columns */
/* columns
, attributes
*/
SELECT
c
.
relnamespace
,
CAST
(
c
.
relname
AS
sql_identifier
),
'TABLE'
::
text
,
a
.
attnum
,
a
.
atttypid
CASE
WHEN
c
.
relkind
=
'c'
THEN
'USER-DEFINED TYPE'
::
text
ELSE
'TABLE'
::
text
END
,
a
.
attnum
,
a
.
atttypid
FROM
pg_class
c
,
pg_attribute
a
WHERE
c
.
oid
=
a
.
attrelid
AND
c
.
relkind
IN
(
'r'
,
'v'
,
'f'
)
AND
c
.
relkind
IN
(
'r'
,
'v'
,
'f'
,
'c'
)
AND
attnum
>
0
AND
NOT
attisdropped
UNION
ALL
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录