My replicated database warns about a collation version mismatch — how seriously should I take it?
I replicated a database onto a new host. Everything appears to work, but connecting to it prints a warning that the database was created with one collation version while the operating system now provides a different one, and advises rebuilding all objects using the default collation.
The database functions normally as far as I can tell, which makes it tempting to ignore.
What is actually at risk here, and what does rebuilding involve?
@postgres_polat · 5d ago
The remedy is to rebuild the affected indexes and then tell the database that the version is now current.
In practice:
Step 3 alone makes the message go away and fixes nothing. That is the shortcut people find and it converts a visible warning into an invisible problem. If you do only one of the steps, do step 2.
Also worth checking constraints and partitions, since unique constraints and range partitioning on text both depend on the same ordering.
Reply
Report