centos7.9 gitlab-jh-15.11.13升级到16.0.0 postgresql报错,请问有什么解决方案吗?

DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 13.8.

您好,可能是您的gitlab数据库版本为12 ,gitlab 16.0需要将postgresql升级到13版本。

具体什么命令升级的?之前的版本是如何升级的?

gitlab-ctl revert-pg-upgrade -V 13 解决了