Commit 9147099
authored
* Fix database data loss after docker compose down (fixes #14358)
PostgreSQL 18 changed the default PGDATA path from /var/lib/postgresql/data
to /var/lib/postgresql/18/docker. The volume was mounted at the old path,
so data was stored in the container's ephemeral layer instead. Setting
PGDATA explicitly ensures data persists in the volume.
* Add upgrade note about PGDATA data loss bug fixed in 2.55.4
PostgreSQL 18 changed its default PGDATA path, causing data to be
written to the container's ephemeral layer instead of the Docker volume.
* simplify
1 parent f67196c commit 9147099
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
0 commit comments