Repository navigation
Replies: 2 comments 1 reply
|
Good question, and the short answer is: HealthLog runs fine on 18, the compose file just doesn't switch you over by itself. I checked it properly before answering. All migrations apply cleanly on a fresh Postgres 18.6, and the whole integration suite now runs against 18 as well as 16 (the next release lets anyone repeat that with The reason the compose file stays on 16 is the existing installs. A major version can't be upgraded by changing the image line: the 18 image refuses a data directory written by 16, and it also expects the volume mounted one level up ( So the move is a dump and restore into a fresh volume. I tried it end to end (dump from 16, restore into 18, migration history intact, nothing pending) and wrote it up for the next release as
The old Moving the default for new installs to 18 is on the list. I'd rather do that together with a start-up check that tells an existing 16 install what to do than flip it quietly. |
|
@sttrebo quick follow-up, because your question kept nagging at me. My first answer boiled down to "it works on 18, but the compose file stays on 16 so nobody's stack breaks on an update". Thinking about it again, that's a reason to make the switch safe, not a reason to skip it. So 1.46 runs Postgres 18, and since you're starting fresh, the new compose file gives you 18 right away. For everyone already on 16: with the new compose file, the database moves over by itself on the first start. A small one-off container copies it into a fresh volume, checks that every table has the same number of rows on both sides, and only then lets the app start. If anything goes wrong, the app just doesn't start and the log tells you why. Your old volume isn't touched, so going back is two lines in the compose file. On my own instance (about 600 MB) the whole move took 29 seconds, with every one of its 180 tables checked. If you run your own Postgres 16, nothing changes for you. HealthLog keeps working on it, and the tests run on both versions now. Thanks for poking at this! |
Uh oh!
There was an error while loading. Please reload this page.
Just curious if there's plan to update the docker info to point to Postgres 18? Any reasons why not? Just curious...
Thanks
All reactions