> 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/infoschema-data-type-privileges.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 35.20. data\_type\_privileges \#

### 35.20. `data_type_privileges` [#](#infoschema-data-type-privileges) <a href="#infoschema-data-type-privileges" id="infoschema-data-type-privileges"></a>

檢視表 `data_type_privileges` 列出目前使用者有權存取（身為所描述物件的擁有者，或對該物件具有某種權限）的所有資料型別描述子。每當資料型別用於資料表欄位、網域或函式（作為參數或回傳型別）的定義中時，就會產生資料型別描述子，其中儲存該資料型別在該處如何使用的一些資訊（例如宣告的最大長度，若適用的話）。每個資料型別描述子都會被指派一個任意的識別碼，此識別碼在為同一個物件（資料表、網域、函式）所指派的資料型別描述子識別碼中是唯一的。此檢視表對應用程式而言大概沒有用處，但資訊綱要中的其他一些檢視表是以它來定義的。

#### 表 35.18. `data_type_privileges` 欄位 [#](#infoschema-data-type-privileges-columns) <a href="#infoschema-data-type-privileges-columns" id="infoschema-data-type-privileges-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>object\_catalog</code> <code>sql\_identifier</code></p><p>包含所描述物件的資料庫名稱（一律為目前資料庫）</p>                                                                                                                 |
| <p><code>object\_schema</code> <code>sql\_identifier</code></p><p>包含所描述物件的綱要名稱</p>                                                                                                                             |
| <p><code>object\_name</code> <code>sql\_identifier</code></p><p>所描述物件的名稱</p>                                                                                                                                   |
| <p><code>object\_type</code> <code>character\_data</code></p><p>所描述物件的類型，為下列之一：<code>TABLE</code>（該資料型別描述子屬於該資料表的某個欄位）、<code>DOMAIN</code>（該資料型別描述子屬於該網域）、<code>ROUTINE</code>（該資料型別描述子屬於該函式的某個參數或回傳資料型別）。</p> |
| <p><code>dtd\_identifier</code> <code>sql\_identifier</code></p><p>資料型別描述子的識別碼，在同一個物件的資料型別描述子中是唯一的。</p>                                                                                                        |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/infoschema-data-type-privileges.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/infoschema-data-type-privileges.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.
