# 37.21. domain\_constraints

The view `domain_constraints` contains all constraints belonging to domains defined in the current database. Only those domains are shown that the current user has access to (by way of being the owner or having some privilege).

**Table 37.19. `domain_constraints` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>constraint\_catalog</code> <code>sql\_identifier</code></p><p>Name of the database that contains the constraint (always the current database)</p>             |
| <p><code>constraint\_schema</code> <code>sql\_identifier</code></p><p>Name of the schema that contains the constraint</p>                                              |
| <p><code>constraint\_name</code> <code>sql\_identifier</code></p><p>Name of the constraint</p>                                                                         |
| <p><code>domain\_catalog</code> <code>sql\_identifier</code></p><p>Name of the database that contains the domain (always the current database)</p>                     |
| <p><code>domain\_schema</code> <code>sql\_identifier</code></p><p>Name of the schema that contains the domain</p>                                                      |
| <p><code>domain\_name</code> <code>sql\_identifier</code></p><p>Name of the domain</p>                                                                                 |
| <p><code>is\_deferrable</code> <code>yes\_or\_no</code></p><p><code>YES</code> if the constraint is deferrable, <code>NO</code> if not</p>                             |
| <p><code>initially\_deferred</code> <code>yes\_or\_no</code></p><p><code>YES</code> if the constraint is deferrable and initially deferred, <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/15/client-interfaces/the-information-schema/domain_constraints.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.
