PostgreSQL 15 ← 14
SYSTEM VIEW · System view
pg_sequences
The view pg_sequences provides access to useful information about each sequence in the database.
Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗
Columns PostgreSQL 18
pg_sequences| COLUMN | TYPE | DESCRIPTION |
|---|---|---|
schemaname |
name |
Name of schema containing sequenceReferences:pg_namespace.nspname |
sequencename |
name |
Name of sequenceReferences:pg_class.relname |
sequenceowner |
name |
Name of sequence's ownerReferences:pg_authid.rolname |
data_type |
regtype |
Data type of the sequenceReferences:pg_type.oid |
start_value |
bigintDocumented as:int8 |
Start value of the sequence |
min_value |
bigintDocumented as:int8 |
Minimum value of the sequence |
max_value |
bigintDocumented as:int8 |
Maximum value of the sequence |
increment_by |
bigintDocumented as:int8 |
Increment value of the sequence |
cycle |
booleanDocumented as:bool |
Whether the sequence cycles |
cache_size |
bigintDocumented as:int8 |
Cache size of the sequence |
last_value |
bigintDocumented as:int8 |
The last sequence value written to disk. If caching is used, this value can be greater than the last value handed out from the sequence. |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
Common system columns 0
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|
Column evolution matrix
Hover a cell for the column type9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
Evolution timeline
Changes between adjacent majorsPostgreSQL 10 ← 9.6Catalog added
Compare any two versions
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.