164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
PG_TABLES.md 19.10 KB
一键复制 编辑 原始数据 按行查看 历史
liyang0608 提交于 2020-09-14 17:26 . sync dts

PG_TABLES

PG_TABLES视图提供了对数据库中每个表访问的有用信息。

表 1 PG_TABLES字段

名称

类型

引用

描述

schemaname

name

PG_NAMESPACE.nspname

包含表的模式名。

tablename

name

PG_CLASS.relname

表名。

tableowner

name

pg_get_userbyid(PG_CLASS.relowner)

表的所有者。

tablespace

name

PG_TABLESPACE.spcname

包含表的表空间,默认为NULL。

hasindexes

Boolean

PG_CLASS.relhasindex

如果表上有索引(或者最近拥有)则为TRUE,否则为FALSE。

hasrules

Boolean

PG_CLASS.relhasruls

如果表上有规则,则为TRUE,否则为FALSE。

hastriggers

Boolean

PG_CLASS.RELHASTRIGGERS

如果表上有触发器,则为TRUE,否则为FALSE。

tablecreator

name

pg_get_userbyid(po.creator)

创建表的名称。

created

timestamp with time zone

pg_object.ctime

对象的创建时间。

last_ddl_time

timestamp with time zone

pg_object.mtime

对象的最后修改时间。

1
https://gitee.com/opengauss/docs.git
git@gitee.com:opengauss/docs.git
opengauss
docs
docs
2.0.0

搜索帮助