Skip to main content

Module alteration

Module alteration 

Source
Expand description

Analyze altered column expressions and types against ordered catalog snapshots.

Structs§

ColumnAlterAnalysisContext

Traits§

ColumnChangeCatalog
Read only the declared type, existence, or loaded column generation requested by an ALTER action.

Functions§

analyze_column_type
analyze_generated_expression
generated_columns_referencing_column
validate_column_default
ATExecColumnDefault for SET DEFAULT: the column is checked before the default is analyzed against its type. Returns whether a default remains; SET DEFAULT NULL leaves none.
validate_column_type_constraints
Rebind the dependent declarations after every column type has changed. A foreign key can refer to another column changed by the same ALTER statement.
validate_default_removal
ATExecColumnDefault for DROP DEFAULT.
validate_drop_expression
ATExecDropExpression’s checks: the notice that skips a column that is not generated under IF EXISTS, or None to drop the expression of a stored generated column.