Skip to main content

Module columns

Module columns 

Source
Expand description

PostgreSQL column-name and stored-type declaration rules.

Modules§

addition
Bind an added column against current defaults, CHECKs, generated expressions, and foreign keys.
alteration
Analyze altered column expressions and types against ordered catalog snapshots.
publication
Mutate a declared column candidate before its catalog publication.
removal_metadata
Validate column dependencies against retained relation metadata and remove local declarations.
type_target
Ordered checks of an ALTER COLUMN TYPE target before its new type is resolved.
type_transform
USING expression analysis and assignment compatibility over the original row type.

Constants§

POSTGRES_SYSTEM_COLUMNS

Functions§

altered_column
The column an ALTER TABLE ... ALTER COLUMN action names, as get_attnum finds it for ATExecColumnDefault and its siblings.
append_registered_column
Append a declared column after checking its name against the existing schema.
missing_altered_column
The error for an ALTER COLUMN target that is not a column of the relation: every relation has the system columns, which cannot be altered, and any other name does not exist.
missing_drop_column_notice
The notice for a missing column, using the unqualified name of the already bound relation.
undefined_relation_column
column "x" of relation "t" does not exist, which ALTER TABLE reports for a column the relation lacks.
validate_default_change
ATExecColumnDefault’s checks of the column whose default SET DEFAULT (setting) or DROP DEFAULT changes: an identity column takes its values from its sequence and a generated column from its expression.
validate_drop_column
Check a DROP target before dependency traversal. Missing IF EXISTS targets return false so execution can publish its notice without changing the relation.
validate_postgres_column_name
validate_postgres_relation_column_type