# 37.47. sequences

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

#### **Table 37.45. `sequences` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>sequence\_catalog</code> <code>sql\_identifier</code></p><p>Name of the database that contains the sequence (always the current database)</p>                                                                                                                                                                                                                                            |
| <p><code>sequence\_schema</code> <code>sql\_identifier</code></p><p>Name of the schema that contains the sequence</p>                                                                                                                                                                                                                                                                             |
| <p><code>sequence\_name</code> <code>sql\_identifier</code></p><p>Name of the sequence</p>                                                                                                                                                                                                                                                                                                        |
| <p><code>data\_type</code> <code>character\_data</code></p><p>The data type of the sequence.</p>                                                                                                                                                                                                                                                                                                  |
| <p><code>numeric\_precision</code> <code>cardinal\_number</code></p><p>This column contains the (declared or implicit) precision of the sequence data type (see above). The precision indicates the number of significant digits. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column <code>numeric\_precision\_radix</code>.</p>                       |
| <p><code>numeric\_precision\_radix</code> <code>cardinal\_number</code></p><p>This column indicates in which base the values in the columns <code>numeric\_precision</code> and <code>numeric\_scale</code> are expressed. The value is either 2 or 10.</p>                                                                                                                                       |
| <p><code>numeric\_scale</code> <code>cardinal\_number</code></p><p>This column contains the (declared or implicit) scale of the sequence data type (see above). The scale indicates the number of significant digits to the right of the decimal point. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column <code>numeric\_precision\_radix</code>.</p> |
| <p><code>start\_value</code> <code>character\_data</code></p><p>The start value of the sequence</p>                                                                                                                                                                                                                                                                                               |
| <p><code>minimum\_value</code> <code>character\_data</code></p><p>The minimum value of the sequence</p>                                                                                                                                                                                                                                                                                           |
| <p><code>maximum\_value</code> <code>character\_data</code></p><p>The maximum value of the sequence</p>                                                                                                                                                                                                                                                                                           |
| <p><code>increment</code> <code>character\_data</code></p><p>The increment of the sequence</p>                                                                                                                                                                                                                                                                                                    |
| <p><code>cycle\_option</code> <code>yes\_or\_no</code></p><p><code>YES</code> if the sequence cycles, else <code>NO</code></p>                                                                                                                                                                                                                                                                    |

Note that in accordance with the SQL standard, the start, minimum, maximum, and increment values are returned as character strings.


---

# 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/36.42.-sequences.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.
