GaussDB-DB_SEQUENCES

28 阅读1分钟

GaussDB-DB_SEQUENCES

DB_SEQUENCES displays all sequences accessible to the current user. This view exists in the PG_CATALOG and SYS schemas.

NameTypeDescription
sequence_ownernameOwner of a sequence.
sequence_namenameName of a sequence.
min_valueint16Minimum value of a sequence.
max_valueint16Maximum value of a sequence.
increment_byint16Value by which a sequence is incremented.
cycle_flagcharacter(1)Specifies whether a sequence is a cyclic sequence. Value range:- Y: It is a cycle sequence.
  • N: It is not a cycle sequence. | | order_flag | character varying(1) | Specifies whether a sequence occurs in a request sequence. Not supported. Its value is NULL. | | cache_size | int16 | Size of the sequence disk cache. | | last_number | int16 | Value of the previous sequence. | | scale_flag | character varying(1) | Specifies whether a sequence is a scalable sequence. Not supported. Its value is NULL. | | extend_flag | character varying(1) | Specifies whether the value generated by a scalable sequence exceeds the maximum or minimum value of the sequence. Not supported. Its value is NULL. | | sharded_flag | character varying(1) | Specifies whether a sequence is a shard sequence. Not supported. Its value is NULL. | | session_flag | character varying(1) | Specifies whether a sequence is a private session. Not supported. Its value is NULL. | | keep_value | character varying(1) | Specifies whether to retain the sequence value during replay after a failure. Not supported. Its value is NULL. |

更多详情请参考GaussDB 文档中心:doc.hcs.huawei.com/db/zh-cn/ga…