PostgreSQL的information schema都有什么
时间: 2024-06-04 14:09:44 浏览: 17
PostgreSQL的information schema是一个元数据信息的集合,它提供了关于数据库中对象的详细信息,包括表、列、函数、索引、外键等。以下是一些常见的information schema表:
- tables:包含所有表的信息,包括表名、所有者、创建时间等。
- columns:包含所有列的信息,包括列名、数据类型、是否为主键、默认值等。
- views:包含所有视图的信息,包括视图名、所有者、创建时间等。
- routines:包含所有函数和存储过程的信息,包括名称、所有者、返回类型、参数等。
- indexes:包含所有索引的信息,包括索引名、关联表、索引类型等。
- constraints:包含所有约束的信息,包括约束类型、关联表、约束名称等。
除了上述信息外,还有许多其他的information schema表,可以通过查询pg_catalog.schema来查看完整的列表。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)