↑↓ select↵ open⌫ change scopeOpen full search

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

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / 20devel
Unsupported versions: 13 / 12 / 11 / 10
Historical version. PostgreSQL 11 has reached end of support. 2023-11-09. See the current manual.

52.46. 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.

Table 52.46. pg_sequence Columns

NameTypeReferencesDescription
seqrelidoidpg_class.oidThe OID of the pg_class entry for this sequence
seqtypidoidpg_type.oidData type of the sequence
seqstartint8 Start value of the sequence
seqincrementint8 Increment value of the sequence
seqmaxint8 Maximum value of the sequence
seqminint8 Minimum value of the sequence
seqcacheint8 Cache size of the sequence
seqcyclebool Whether the sequence cycles

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.