# 37.20. data\_type\_privileges

The view `data_type_privileges` identifies all data type descriptors that the current user has access to, by way of being the owner of the described object or having some privilege for it. A data type descriptor is generated whenever a data type is used in the definition of a table column, a domain, or a function (as parameter or return type) and stores some information about how the data type is used in that instance (for example, the declared maximum length, if applicable). Each data type descriptor is assigned an arbitrary identifier that is unique among the data type descriptor identifiers assigned for one object (table, domain, function). This view is probably not useful for applications, but it is used to define some other views in the information schema.

#### **Table 37.18. `data_type_privileges` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>object\_catalog</code> <code>sql\_identifier</code></p><p>Name of the database that contains the described object (always the current database)</p>                                                                                                                                                                                                                              |
| <p><code>object\_schema</code> <code>sql\_identifier</code></p><p>Name of the schema that contains the described object</p>                                                                                                                                                                                                                                                               |
| <p><code>object\_name</code> <code>sql\_identifier</code></p><p>Name of the described object</p>                                                                                                                                                                                                                                                                                          |
| <p><code>object\_type</code> <code>character\_data</code></p><p>The type of the described object: one of <code>TABLE</code> (the data type descriptor pertains to a column of that table), <code>DOMAIN</code> (the data type descriptors pertains to that domain), <code>ROUTINE</code> (the data type descriptor pertains to a parameter or the return data type of that function).</p> |
| <p><code>dtd\_identifier</code> <code>sql\_identifier</code></p><p>The identifier of the data type descriptor, which is unique among the data type descriptors for that same object.</p>                                                                                                                                                                                                  |


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.postgresql.tw/15/client-interfaces/the-information-schema/data_type_privileges.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
