Skip to content

Conversation

@eric-weaver
Copy link
Contributor

What does this PR do?

With the release of Postgres 18 and the recent support added to the Postgres integration for Postgres 18 we should update the libpq version we build the psycopg wheels against in order for customers monitoring Postgres 18 versions (and Postgres 17 as we seem to have let that slip 😅) benefit from all new client side support that might be available. libpq maintains strong backwards compatibility with older clients and gracefully drops wire protocol support when using an older client version against a new Postgres server so this bump shouldn't have negative impact on existing usage

Motivation

I recently added support for Postgres 18 and noticed we're still on quite an old libpq version. We purposely skipped this a few months ago when upgrading from psycopg2 -> psycopg3, but now that we're past that hurdle we should get this on a newer version.

Newer libpq versions also contain a number of CVE fixes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

⚠️ Recommendation: Add qa/skip-qa label

This PR does not modify any files shipped with the agent.

To help streamline the release process, please consider adding the qa/skip-qa label if these changes do not require QA testing.

@eric-weaver
Copy link
Contributor Author

aarch64 build failure looks to be due to libpq 18.0 breaking on manylinux2014. Upstream bug report 😞

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants