in src/dma/collector/workflows/readiness_check/_postgres/main.py [0:0]
def _check_collation(self) -> None:
rule_code = "COLLATION"
collations = self._get_collation()
for c in self.rule_config:
supported_collations = {coll.lower() for coll in c.supported_collations}
unsupported_collations = collations.difference(supported_collations)
for unsupported_collation in unsupported_collations:
self.save_rule_result(
c.db_variant,
rule_code,
ERROR,
f"Unsupported collation: {unsupported_collation} is not supported on this instance",
)
if len(unsupported_collations) == 0:
self.save_rule_result(
c.db_variant,
rule_code,
PASS,
"All utilized collations are supported.",
)