> 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/16/client-interfaces/the-information-schema/36.42.-sequences.md).

# 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
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/16/client-interfaces/the-information-schema/36.42.-sequences.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.
