4 The view pg_sequences provides access to useful information about each
5 sequence in the database.
7 Table 53.24. pg_sequences Columns
13 schemaname name (references pg_namespace.nspname)
15 Name of schema containing sequence
17 sequencename name (references pg_class.relname)
21 sequenceowner name (references pg_authid.rolname)
23 Name of sequence's owner
25 data_type regtype (references pg_type.oid)
27 Data type of the sequence
31 Start value of the sequence
35 Minimum value of the sequence
39 Maximum value of the sequence
43 Increment value of the sequence
47 Whether the sequence cycles
51 Cache size of the sequence
55 The last sequence value written to disk. If caching is used, this value
56 can be greater than the last value handed out from the sequence.
58 The last_value column will read as null if any of the following are
60 * The sequence has not been read from yet.
61 * The current user does not have USAGE or SELECT privilege on the
63 * The sequence is unlogged and the server is a standby.