postgresql - Postgres 中的 pg_class 是什么以及如何使用 pgAdmin 4 查看它?

标签 postgresql pgadmin system-views

我是 Postgresql 的新手,我刚刚看到我的 friend 在调用“pq_class”的 cakePhp Controller 上查询。我试图查找我的 PostgreSQL 数据库并使用 pgAgmin4 找出里面的内容。

不幸的是,我看不到任何带有“pg_class”的表名。我试着用谷歌搜索并找到这些页面:

https://www.postgresql.org/docs/current/catalog-pg-class.html

postgreSQL - pg_class question

但是我对pg_class还是很困惑。关于 pg_class 是否有任何好的或真实的解释,以及如何在不使用任何查询的情况下使用 pgAdmin4 查看它(只需右键单击 -> 查看数据)

最佳答案

pg_class 是一个内部系统表,用于存储有关数据库中可用的表(和类似对象)的信息。每个数据库产品都有它维护的这样一个 collection of system tables(和 View )。

您可以(并且在大多数情况下应该)使用来自 information_schema 的 View 如果您想查看有关表、列、 View 和其他数据库对象的信息。

关于postgresql - Postgres 中的 pg_class 是什么以及如何使用 pgAdmin 4 查看它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53756712/

相关文章:

oracle - 从数据字典中查找包全局变量

postgresql - pgAdmin 参数格式不能混合

sql-server - SQL Server 如何确定序列中的下一个值?

sql - 加入多对多关系

postgresql - SQLAlchemy postgresql.ARRAY 大小

postgresql - 我们可以为 PostgreSQL 数据库备份制作脚本或作业计划吗?

c# - 无法选择最佳候选函数。您可能需要在 Postgres 中添加显式类型转换

postgresql - psql : error: could not connect to server: FATAL: Peer authentication failed for user "postgres"

sql - PostgreSQL IP 池