解决PostgreSQL中pg_upgrade和lc_collate不匹配问题
Character collations determine the sort order and classification of characters. When creating a database with initdb, PostgreSQL normally sets the collation based on the operating system’s locale...
本文讨论了升级和更新PostgreSQL时可能出现的字符排序规则不匹配的问题,解决方法是重新初始化新版本的PGDATA目录并明确指定排序规则。建议使用二进制排序规则(C/POSIX)以稳定排序规则并避免未来问题。
