# 被阻止的更新必须运行最新镜像 - Discourse 托管

**URL:** <https://meta.discourse.org/t/updates-blocked-must-run-latest-img-discourse-hosted/415674>\
**Category:** Product Support\
**Tags:** hosted-support\
**Created:** [2026 年10 月 25 日 12:25 UTC](https://meta.discourse.org/t/updates-blocked-must-run-latest-img-discourse-hosted/415674 "2026-10-25T12:25:22Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

作者： ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
发布日期： [2026 年10 月 25 日 18:05 UTC](https://meta.discourse.org/t/updates-blocked-must-run-latest-img-discourse-hosted/415674/15 "2026-10-25T18:05:22Z")

</div>

如果您尚未获取大型数据库版本更新，那么安装该更新需要执行两次命令行更新。这是从 pg15 到 pg18 的升级，将于 8 月初提供。参见

> [@面向自托管用户的 PostgreSQL 18 更新](https://meta.discourse.org/t/postgresql-18-update-for-self-hosters/406194):
>
> warning 警告！ 升级需要大量的空闲磁盘空间（数据库大小的 2 倍）。 我们刚刚完成了将 Docker 镜像升级至 PostgreSQL 18 的更改。任何通过命令行重建 Discourse 的网站管理员都将从之前的 PostgreSQL 15 升级至 PostgreSQL 18。请注意，如果您在 2025 年 PostgreSQL 15 更新 [发布时](https://meta.discourse.org/t/postgresql-15-update/349515) 选择暂缓升级，您可以跳过该升级步骤，直接升级至 PostgreSQL 18。 如果您之前暂缓了升级，请将 app.yml 中的 PostgreSQL 模板从 templates/postgres.13.template.yml 更改为 templates/postgres.template.yml。 与任何升级一样，强烈建议在执行任何操作之前进行备份。 区域设置变更 过去，我们在 glibc 更新期间（例如操作系统升级时）曾遇到过索引损坏的问题。自 PostgreSQL 17 起，出现了一种新的 [内置区域设置提供程序](https://www.postgresql.org/docs/18/locale.html#LOCALE-PROVIDERS)，它与操作系统的 glibc 解耦，因此跨版本更加稳定。作为此次升级的一部分，我们将迁移至使用 …

---

_[View the full topic](https://meta.discourse.org/t/updates-blocked-must-run-latest-img-discourse-hosted/415674)._
