9.3 9.4 9.5 9.6 10 11 12 13 14
阿里云PostgreSQL 问题报告 纠错本页面

52.85. pg_sequences

视图pg_sequences提供对数据库中每个序列的信息的访问。

表 52.86. pg_sequences Columns

列类型

描述

schemaname name (参考 pg_namespace.nspname)

包含序列的模式名

sequencename name (references pg_class.relname)

序列的名称

sequenceowner name (references pg_authid.rolname)

序列的拥有者的名称

data_type regtype (references pg_type.oid)

序列的数据类型

start_value int8

序列的起始值

min_value int8

序列的最小值

max_value int8

序列的最大值

increment_by int8

序列的增量值

cycle bool

序列是否循环

cache_size int8

序列的缓冲尺寸

last_value int8

最后一个被写入到磁盘的序列值。如果使用了缓冲,这个值可能比从序列中取出的最后一个值大。如果还没有从该序列读取过,则为空。 此外,如果当前用户没有该序列上的USAGESELECT特权,则这个值为空。