All Products
Search
Document Center

PolarDB:ALL_SEQUENCES

Last Updated:Mar 28, 2026

The ALL_SEQUENCES view lists all user-defined sequences on which you hold SELECT or UPDATE permission.

Columns

ColumnTypeDescription
sequence_ownerTEXTThe username of the sequence owner.
schema_nameTEXTThe name of the schema that contains the sequence.
sequence_nameTEXTThe name of the sequence.
min_valueNUMERICThe minimum value the server assigns to the sequence.
max_valueNUMERICThe maximum value the server assigns to the sequence.
increment_byNUMERICThe value added to the current sequence number to produce the next sequence number.
cycle_flagCHARACTER VARYINGWhether the sequence wraps around when it reaches min_value or max_value.
order_flagCHARACTER VARYINGAlways returns Y.
cache_sizeNUMERICThe number of preallocated sequence numbers held in memory.
last_numberNUMERICThe last sequence number written to disk.