↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

pg_sequence

The catalog pg_sequence contains information about sequences. Some of the information about sequences, such as the name and the schema, is in pg_class

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
catalog
lang
en
measured attributes
true
metadata release
18.6
runtime columns
seqrelid, seqtypid, seqstart, seqincrement, seqmax, seqmin, seqcache, seqcycle
runtime verified
false
source
english-manual

Definition PG 18

The catalog pg_sequence contains information about sequences. Some of the information about sequences, such as the name and the schema, is in pg_class

Catalog columns

ColumnTypeNullabilityDescription
seqrelidoidNot nullThe OID of the pg_class entry for this sequence
seqtypidoidNot nullData type of the sequence
seqstartint8Not nullStart value of the sequence
seqincrementint8Not nullIncrement value of the sequence
seqmaxint8Not nullMaximum value of the sequence
seqminint8Not nullMinimum value of the sequence
seqcacheint8Not nullCache size of the sequence
seqcycleboolNot nullWhether the sequence cycles

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:9cc9db1bd968eb9c852897c2a4b275d753230ab1f60885eca0ee0e1d84a0f219

Text language: en · catalog-bilingual-repair:9cc9db1bd968eb9c852897c2a4b275d753230ab1f60885eca0ee0e1d84a0f219