chore(dev): isolate the pinned PostgreSQL 18 development volume
What & why
Pin local development to PostgreSQL 18 with a separate superset_db18_data volume mounted at /var/lib/postgresql. Preserve the PostgreSQL 17 volume and document export/import, explicit reseeding, destructive teardown and rollback by restoring the complete old Compose file.
The new volume starts empty. Returning to PostgreSQL 17 reuses its retained data; it does not copy later PostgreSQL 18 writes backward. This development change is independent of #8237’s native adapter, which supports retained PostgreSQL 17 deployments.
One commit based on upstream 2dda82c314606aaa099b8626150c61450d66b629. Final candidate: 6ca2e2452bc99318f3230d474025b886e662eba3. Related review: tracking issue #8241.
The one-commit combined source on review/verified-composition-20261007 (ef1ac91f) integrates all seven proposals for reproduction without another PR. Shared graph evidence applies to that composition; focused proposal checks are recorded separately.
How I tested it
Compose normalization passed. An actual disposable arm64 rehearsal booted PostgreSQL 18.6 and applied the full application migration chain. A separate export/import moved 1,000 rows from PostgreSQL 17.11 to 18.6 with matching ordered checksums, including Unicode JSON and integers above JavaScript’s safe range. Restarting PostgreSQL 17 preserved its checksum; a subsequent PostgreSQL 18 write left the old database unchanged. Final focused proposal checks: Pinned disposable PostgreSQL 18 boot/migration and real PostgreSQL 17→18 transfer of 1,000 Unicode/large-ID rows passed; ordered checksums matched, retained PostgreSQL 17 restarted unchanged, and new PostgreSQL 18 writes did not alter it. Compose/documentation checks and full combined lint passed..
Checklist
- PR title follows conventional commits (
type(scope): subject) -
bun run lintandbun run typecheckpass (final candidate scope/results above) - "Allow edits from maintainers" is checked on fork PRs
Summary by CodeRabbit
- Development
- The local Docker Compose setup now uses PostgreSQL 18 with a separate, empty data volume. Existing PostgreSQL 17 data is not automatically upgraded or copied; export and restore it separately if you need to retain it.
- Updated development guidance covers data backup and restore, verifying the version change, and rolling back to PostgreSQL 17. Avoid removing volumes before verifying your data; PostgreSQL 18 writes are not copied back during rollback.