Skip to main content
Version: 2.x

pg_sequence

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

columntypereferencesdescription
seqrelidoidpg_class.oid OID of the pg_class entry for this sequence
seqtypidoidpg_type.oidData type of the sequence
seqstartbigintStart value of the sequence
seqincrementbigintIncrement value of the sequence
seqmaxbigintMaximum value of the sequence
seqminbigintMinimum value of the sequence
seqcachebigintCache size of the sequence
seqcyclebooleanWhether the sequence cycles