]> begriffs open source - ai-pg/blob - full-docs/txt/view-pg-sequences.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / view-pg-sequences.txt
1
2 53.24. pg_sequences #
3
4    The view pg_sequences provides access to useful information about each
5    sequence in the database.
6
7    Table 53.24. pg_sequences Columns
8
9    Column Type
10
11    Description
12
13    schemaname name (references pg_namespace.nspname)
14
15    Name of schema containing sequence
16
17    sequencename name (references pg_class.relname)
18
19    Name of sequence
20
21    sequenceowner name (references pg_authid.rolname)
22
23    Name of sequence's owner
24
25    data_type regtype (references pg_type.oid)
26
27    Data type of the sequence
28
29    start_value int8
30
31    Start value of the sequence
32
33    min_value int8
34
35    Minimum value of the sequence
36
37    max_value int8
38
39    Maximum value of the sequence
40
41    increment_by int8
42
43    Increment value of the sequence
44
45    cycle bool
46
47    Whether the sequence cycles
48
49    cache_size int8
50
51    Cache size of the sequence
52
53    last_value int8
54
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.
57
58    The last_value column will read as null if any of the following are
59    true:
60      * The sequence has not been read from yet.
61      * The current user does not have USAGE or SELECT privilege on the
62        sequence.
63      * The sequence is unlogged and the server is a standby.