Skip to content

Päivitetään postgres-volumen polku#8704

Merged
tomuli merged 1 commit intomasterfrom
compose-postgres-path
Mar 18, 2026
Merged

Päivitetään postgres-volumen polku#8704
tomuli merged 1 commit intomasterfrom
compose-postgres-path

Conversation

@tomuli
Copy link
Copy Markdown
Contributor

@tomuli tomuli commented Mar 17, 2026

Postgres 18:n data-volumen polku vaihtui aikaisemmista versioista. Devissä käytössä jo 18, päivitetään polku jotta devauskanta säilyy konttien käynnistysten yli.

https://hub.docker.com/_/postgres#pgdata

Important Change: the PGDATA environment variable of the image was changed to be version specific in PostgreSQL 18 and above. For 18 it is /var/lib/postgresql/18/docker. Later versions will replace 18 with their respective major version (e.g., /var/lib/postgresql/19/docker for PostgreSQL 19.x). The defined VOLUME was changed in 18 and above to /var/lib/postgresql. Mounts and volumes should be targeted at the updated location. This will allow users upgrading between PostgreSQL major releases to use the faster --link when running pg_upgrade and mounting /var/lib/postgresql.

@tomuli tomuli added the no-changelog Ei näytetä muutoslokilla label Mar 17, 2026
@tomuli tomuli merged commit f58d417 into master Mar 18, 2026
29 checks passed
@tomuli tomuli deleted the compose-postgres-path branch March 18, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Ei näytetä muutoslokilla

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants