Ethsim2
(Ethan )
76
我认为我找到了原因。
当前的基础镜像安装了 PostgreSQL 18 服务器,但 postgres.15.template.yml 仍然假设 PostgreSQL 15 服务器软件包已经存在。因此,在 /etc/postgresql/15/main/postgresql.conf 文件存在之前,脚本就尝试访问它,从而产生了上述的 ENOENT 错误。
我提交了一个小的 PR,该 PR 让 PostgreSQL 15 的保留模板在配置 PostgreSQL 之前,先移除 PostgreSQL 18 服务器软件包并安装 PostgreSQL 15 服务器软件包:
这应该能恢复预期的路径,即通过将 postgres.template.yml 更改为 postgres.15.template.yml 来推迟 PostgreSQL 18 的升级。
4 个赞