4.10.19升级5.0后 PostgreSQL 突然异常断开

File “/opt/py3/lib/python3.14/site-packages/django/db/backends/utils.py”, line 105, in _execute
return self.cursor.execute(sql, params)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
psycopg2.OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
问AI说是 PostgreSQL 数据是在旧环境(collation 版本 2.31 )中创建,而现在运行 PostgreSQL 的容器操作系统提供的 collation 版本是 2.36,版本不匹配导致索引损坏

容器起的数据库不应该会断啊, 可以先根据旧版本的sql文件 通过jmsctl的load_image 和 restore_db 操作先回退版本