Hubert 'depesz' Lubaczewski:关于从PostgreSQL 12升级到14的(不完整)故事
This might not interest many of you, but I recently heard about at least two people that stumbled upon the problems I did, so I figured I can write about problems we discovered, and how we solved...
本文介绍了作者在将PostgreSQL从14.x升级到14时遇到的问题及解决方案。作者的环境包括数百个集群,每个集群有至少四个服务器,每个集群只有一个数据库,但有400-500个表,使用了大量模式。作者尝试使用pg_upgrade和逻辑复制进行升级,但遇到了诸多问题,如语言环境变化、复制插槽过多、死锁等。最终,作者通过编写测试脚本解决了复制插槽过多的问题,并使用逻辑复制进行升级。虽然作者对此方法的可靠性不是100%确定,但仍然有希望。