# PostgreSQL 15 更新

**URL:** https://meta.discourse.org/t/postgresql-15-update/349515
**Category:** Announcements
**Created:** [2025年一月29日 07:20 UTC](https://meta.discourse.org/t/postgresql-15-update/349515 "2025-01-29T07:20:00Z")
**Posts on this page:** 1
**Showing post:** 137

<div class="post-metadata">

### Author: ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)
#### Post date: [2025年二月25日 20:36 UTC](https://meta.discourse.org/t/postgresql-15-update/349515/137 "2025-02-25T20:36:59Z")

</div>

我认为您正确地指出了问题所在。这是我在 app.yml 中看到的内容：

```plaintext
## Docker 容器是无状态的；所有数据都存储在 /shared 中
volumes:
  - volume:
      host: /mnt/volume_tor1_01/shared/standalone
      guest: /shared
  - volume:
      host: /mnt/volume_tor1_01/shared/standalone/log/var-log
      guest: /var/log
  - volume:
      host: /var/postgres_data_discourse
      guest: /shared/postgres_data

```

（基于此指南 [https://meta.discourse.org/t/move-uploads-and-backups-to-digitalocean-block-storage/89274）](https://meta.discourse.org/t/move-uploads-and-backups-to-digitalocean-block-storage/89274%EF%BC%89)

```plaintext
$ cat postgres_data/PG_VERSION
15

```

```plaintext
$ cat /var/postgres_data_discourse/PG_VERSION
13

```

所以我认为这个问题确实可以通过这个方法解决 [PostgreSQL 15 update - #125 by Vaping\_Community](https://meta.discourse.org/t/postgresql-15-update/349515/125?u=piffy)

我想让我感到困惑的是，我在 mnt 卷上有多个 postgres\_data 文件夹（因为我重新运行了重建），并且没有意识到源文件夹实际上在 /var/ 中。

我今晚晚些时候会尝试一下。

---

_[View the full topic](https://meta.discourse.org/t/postgresql-15-update/349515)._
