Skip to content

fix(hack-postgres): hack postgres client since postgresql-client:18 is misbehaving, for #7661 - #7663

Merged
rfay merged 1 commit into
ddev:mainfrom
rfay:20250925_rfay_hack_postgres_client
Sep 26, 2025
Merged

rfay merged 1 commit into
ddev:mainfrom
rfay:20250925_rfay_hack_postgres_client

Conversation

@rfay

@rfay rfay commented Sep 25, 2025

Copy link
Copy Markdown
Member

The Issue

With the arrival of postgres 18, postgresql-client always installs 18 apparently

How This PR Solves The Issue

Temp hack, to be reverted:
Uninstall postgresql-client:18 after the required client is installed

Manual Testing Instructions

ddev config --database=postgres:15
ddev delete -Oy
ddev start -y
ddev exec psql --version # should get 15

Automated Testing Overview

Release/Deployment Notes

@github-actions

Copy link
Copy Markdown

@rfay
rfay marked this pull request as ready for review September 26, 2025 02:30
@rfay
rfay requested a review from a team as a code owner September 26, 2025 02:30
@rfay
rfay requested a review from stasadev September 26, 2025 02:30
@rfay

rfay commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

We need to get this or something like it in to get tests working again.

@tyler36 tyler36 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you.

Test

Current head

  1. Check DDEV version
$ ddev -v
ddev version v1.24.8-11-gbd427af39
  1. Create "postgres:15" project
ddev config --database=postgres:15
ddev delete -Oy
ddev start -y
  1. ❌ Confirm psql version
$ ddev exec psql --version # should get 15
psql (PostgreSQL) 18.0 (Debian 18.0-1.pgdg12+3)

This PR

  1. Check DDEV version
$ ddev -v
ddev version v1.24.8-12-g17220e442
  1. Create "postgres:15" project
ddev config --database=postgres:15
ddev delete -Oy
ddev start -y
  1. ✅ Confirm psql version
$ ddev exec psql --version # should get 15
psql (PostgreSQL) 15.14 (Debian 15.14-1.pgdg12+1)

@rfay

rfay commented Sep 26, 2025

Copy link
Copy Markdown
Member Author

I'll pull this so we can get some tests done while Stas is sleeping still. It's just a temporary hack and we should be able to do better and figure out what's actually going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants