> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/19/client-interfaces/information-schema.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 第 35 章 資訊綱要

### 第 35 章 資訊綱要

**目錄**

[35.1. 資訊結構描述](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-schema.md)

[35.2. 資料型別](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-datatypes.md)

[35.3. `information_schema_catalog_name`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-information-schema-catalog-name.md)

[35.4. `administrable_role_​authorizations`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-administrable-role-authorizations.md)

[35.5. `applicable_roles`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-applicable-roles.md)

[35.6. `attributes`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-attributes.md)

[35.7. `character_sets`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-character-sets.md)

[35.8. `check_constraint_routine_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-check-constraint-routine-usage.md)

[35.9. `check_constraints`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-check-constraints.md)

[35.10. `collations`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-collations.md)

[35.11. `collation_character_set_​applicability`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-collation-character-set-applicab.md)

[35.12. `column_column_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-column-column-usage.md)

[35.13. `column_domain_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-column-domain-usage.md)

[35.14. `column_options`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-column-options.md)

[35.15. `column_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-column-privileges.md)

[35.16. `column_udt_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-column-udt-usage.md)

[35.17. `columns`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-columns.md)

[35.18. `constraint_column_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-constraint-column-usage.md)

[35.19. `constraint_table_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-constraint-table-usage.md)

[35.20. `data_type_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-data-type-privileges.md)

[35.21. `domain_constraints`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-domain-constraints.md)

[35.22. `domain_udt_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-domain-udt-usage.md)

[35.23. `domains`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-domains.md)

[35.24. `element_types`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-element-types.md)

[35.25. `enabled_roles`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-enabled-roles.md)

[35.26. `foreign_data_wrapper_options`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-data-wrapper-options.md)

[35.27. `foreign_data_wrappers`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-data-wrappers.md)

[35.28. `foreign_server_options`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-server-options.md)

[35.29. `foreign_servers`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-servers.md)

[35.30. `foreign_table_options`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-table-options.md)

[35.31. `foreign_tables`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-foreign-tables.md)

[35.32. `key_column_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-key-column-usage.md)

[35.33. `parameters`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-parameters.md)

[35.34. `referential_constraints`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-referential-constraints.md)

[35.35. `role_column_grants`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-role-column-grants.md)

[35.36. `role_routine_grants`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-role-routine-grants.md)

[35.37. `role_table_grants`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-role-table-grants.md)

[35.38. `role_udt_grants`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-role-udt-grants.md)

[35.39. `role_usage_grants`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-role-usage-grants.md)

[35.40. `routine_column_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routine-column-usage.md)

[35.41. `routine_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routine-privileges.md)

[35.42. `routine_routine_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routine-routine-usage.md)

[35.43. `routine_sequence_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routine-sequence-usage.md)

[35.44. `routine_table_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routine-table-usage.md)

[35.45. `routines`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-routines.md)

[35.46. `schemata`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-schemata.md)

[35.47. `sequences`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-sequences.md)

[35.48. `sql_features`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-sql-features.md)

[35.49. `sql_implementation_info`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-sql-implementation-info.md)

[35.50. `sql_parts`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-sql-parts.md)

[35.51. `sql_sizing`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-sql-sizing.md)

[35.52. `table_constraints`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-table-constraints.md)

[35.53. `table_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-table-privileges.md)

[35.54. `tables`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-tables.md)

[35.55. `transforms`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-transforms.md)

[35.56. `triggered_update_columns`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-triggered-update-columns.md)

[35.57. `triggers`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-triggers.md)

[35.58. `udt_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-udt-privileges.md)

[35.59. `usage_privileges`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-usage-privileges.md)

[35.60. `user_defined_types`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-user-defined-types.md)

[35.61. `user_mapping_options`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-user-mapping-options.md)

[35.62. `user_mappings`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-user-mappings.md)

[35.63. `view_column_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-view-column-usage.md)

[35.64. `view_routine_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-view-routine-usage.md)

[35.65. `view_table_usage`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-view-table-usage.md)

[35.66. `views`](https://docs.postgresql.tw/19/client-interfaces/information-schema/infoschema-views.md)

資訊綱要由一組檢視表組成，其中包含目前資料庫中所定義物件的相關資訊。資訊綱要定義於 SQL 標準中，因此可以預期它具有可攜性並保持穩定——這點與系統目錄不同，系統目錄是 PostgreSQL 特有的，並且是依照實作上的考量來設計。不過，資訊綱要檢視表並不包含 PostgreSQL 特有功能的相關資訊；若要查詢這些資訊，你需要查詢系統目錄或其他 PostgreSQL 特有的檢視表。

#### 注意

向資料庫查詢限制條件資訊時，預期傳回一筆資料列的符合標準查詢，有可能傳回多筆 資料列。這是因為 SQL 標準要求限制條件名稱在綱要內必須唯一，但 PostgreSQL 並不 強制執行此限制。PostgreSQL 自動產生的限制條件名稱會避免在同一綱要中重複，但使用者 可以指定這種重複的名稱。

查詢 `check_constraint_routine_usage`、 `check_constraints`、`domain_constraints` 與 `referential_constraints` 等資訊綱要檢視表時，可能會出現這個問題。其他一些檢視表 也有類似的問題，但包含資料表名稱以協助區分重複的資料列，例如 `constraint_column_usage`、 `constraint_table_usage`、`table_constraints`。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/information-schema.html)（原文版本：18.6；核對日期：2026-10-18）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/19/client-interfaces/information-schema.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
