Skip to content

FIX: Include PostgreSQL 15 in test images - #1096

Merged
tgxworld merged 2 commits into
mainfrom
tgxworld/fix-test-image-pg15-server
Jul 30, 2026
Merged

FIX: Include PostgreSQL 15 in test images#1096
tgxworld merged 2 commits into
mainfrom
tgxworld/fix-test-image-pg15-server

Conversation

@tgxworld

@tgxworld tgxworld commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The test images installed server and extension packages only for PG_MAJOR. After the default moved to PostgreSQL 18, Discourse structure-dump tasks could no longer start a compatible PostgreSQL 15–16 server.

This commit exports PG_MAJOR_OLD and installs its server, contrib, and pgvector packages in every test image so structure-dump tasks can continue using PostgreSQL 15 alongside PostgreSQL 18.

tgxworld added 2 commits July 30, 2026 14:17
The test images installed server and extension packages only for `PG_MAJOR`. After the default moved to PostgreSQL 18, Discourse structure-dump tasks could no longer start a compatible PostgreSQL 15–16 server.

This commit exports `PG_MAJOR_OLD`, installs its server, contrib, and pgvector packages in every test image, and verifies its `pg_ctl` exists during the image build.
Installing `postgresql-${PG_MAJOR_OLD}` already fails the image build if the package or its binaries are unavailable, so the explicit `pg_ctl` path assertion adds no additional guarantee.
@tgxworld
tgxworld marked this pull request as ready for review July 30, 2026 06:24
@tgxworld
tgxworld merged commit a2e8beb into main Jul 30, 2026
4 checks passed
@tgxworld
tgxworld deleted the tgxworld/fix-test-image-pg15-server branch July 30, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants