# 面向自托管用户的 PostgreSQL 18 更新

**URL:** <https://meta.discourse.org/t/postgresql-18-update-for-self-hosters/406194>\
**Category:** Announcements\
**Created:** [2026年八月3日 04:36 UTC](https://meta.discourse.org/t/postgresql-18-update-for-self-hosters/406194 "2026-08-03T04:36:42Z")\
**Posts on this page:** 1\
**Showing post:** 49

<div class="post-metadata">

**Author:** ![chrisr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisr/32/246622_2.png) [@chrisr](https://meta.discourse.org/u/chrisr)\
**Post date:** [2026年八月10日 07:52 UTC](https://meta.discourse.org/t/postgresql-18-update-for-self-hosters/406194/49 "2026-08-10T07:52:57Z")

</div>

我刚刚合并了一个针对多站点的修复，所有数据库现在应该都能正常升级。您可以按照以下步骤将数据库恢复到升级前的状态，然后重试：

1. 确认旧数据仍存在于 `/shared/postgres_data_old`。
2. 删除 `/shared/postgres_data` 中升级失败的数据（如果磁盘空间充足，建议先重命名而不是直接删除）。
3. 将 `/shared/postgres_data_old` 重命名回 `/shared/postgres_data`。您还需要确保目录权限为 0700，否则 Postgres 将拒绝使用它。
4. 运行 `./launcher rebuild app` 重新启动升级。

---

_[View the full topic](https://meta.discourse.org/t/postgresql-18-update-for-self-hosters/406194)._
