Skip to content

Conversation

@ThanhNguyxn
Copy link

Summary

Fixes the Postgres 18+ Docker container compatibility issue reported in #305.

Problem

When using Postgres 18+ Docker images, the container fails to start with an error about the volume mount configuration:

Error: in 18+, these Docker images are configured to store database data in a
       format which is compatible with "pg_ctlcluster" (specifically, using
       major-version-specific directory names).

Solution

Changed the volume mount path from /var/lib/postgresql/data to /var/lib/postgresql/.

This allows Postgres 18+ to manage its own data directory structure with major-version-specific subdirectories, which is required for proper pg_upgrade --link functionality.

Reference

Testing

Reported working by:

Fixes #305

Changes the volume mount from /var/lib/postgresql/data to /var/lib/postgresql/
to fix compatibility issues with Postgres 18+ Docker images.

Postgres 18+ expects the volume mount at /var/lib/postgresql/ so it can
manage the data directory structure itself with major-version-specific
directory names.

See: docker-library/postgres#1259

Fixes plandex-ai#305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run in"Local Mode Quickstart" on OSX

1 participant