# 37.38. role\_udt\_grants

The view `role_udt_grants` is intended to identify `USAGE` privileges granted on user-defined types where the grantor or grantee is a currently enabled role. Further information can be found under `udt_privileges`. The only effective difference between this view and `udt_privileges` is that this view omits objects that have been made accessible to the current user by way of a grant to `PUBLIC`. Since data types do not have real privileges in PostgreSQL, but only an implicit grant to `PUBLIC`, this view is empty.

#### **Table 37.36. `role_udt_grants` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><code>grantor</code> <code>sql\_identifier</code></p><p>The name of the role that granted the privilege</p>                             |
| <p><code>grantee</code> <code>sql\_identifier</code></p><p>The name of the role that the privilege was granted to</p>                      |
| <p><code>udt\_catalog</code> <code>sql\_identifier</code></p><p>Name of the database containing the type (always the current database)</p> |
| <p><code>udt\_schema</code> <code>sql\_identifier</code></p><p>Name of the schema containing the type</p>                                  |
| <p><code>udt\_name</code> <code>sql\_identifier</code></p><p>Name of the type</p>                                                          |
| <p><code>privilege\_type</code> <code>character\_data</code></p><p>Always <code>TYPE USAGE</code></p>                                      |
| <p><code>is\_grantable</code> <code>yes\_or\_no</code></p><p><code>YES</code> if the privilege is grantable, <code>NO</code> if not</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/client-interfaces/the-information-schema/role_udt_grants.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.
