Skip to main content

Module collations

Module collations 

Source
Expand description

Differ for collations. Per-collation granular diff:

  • Structural change (provider / lc_collate / lc_ctype / deterministic) → Replace (skip the rest); version is read-only and ignored.
  • owner differs (lenient) → AlterObjectOwner.
  • comment differs → CommentOn.

Lenient: target-only collations do NOT emit Drop (surfaces via the unmanaged-collation lint in a later stage). Rename is not emitted either — name mismatch is treated as drop-old (lenient skip) plus create-new, since rename intent is not structurally derivable.

Functions§

diff_collations
Compute granular collation changes needed to converge target toward source. Appends all emitted changes to out.