Skip to main content

Module declaration

Module declaration 

Source
Expand description

Read the options of a new sequence as PostgreSQL’s init_params reads them.

Structs§

DeclaredSequence
A new sequence’s definition, with the value its first nextval returns.

Functions§

alter_declared_sequence
Read the options of ALTER SEQUENCE, or of an identity column’s SET and RESTART, against an existing sequence whose definition is definition and whose next value is current, in the same order. An omitted option keeps its value, NO MINVALUE and NO MAXVALUE take the defaults again, a new type takes its own bounds for the bounds that were the old type’s, and the current value is checked against the bounds the options produce.
declare_sequence
Read the options of a new sequence of data_type, its written AS type or the type of the identity column it serves, in PostgreSQL’s order: the type, the increment, cycling, the maximum, the minimum, their ranges, the start, the restart and the cache, each checked as it is read. An omitted option takes the default its type and the direction of its increment give it.
sequence_option_integer
An option’s value as PostgreSQL’s defGetInt64 reads it.
sequence_ownership
The column OWNED BY names, as PostgreSQL reads it once it has created the sequence: NONE, or a relation and one of its columns.