integrations-core icon indicating copy to clipboard operation
integrations-core copied to clipboard

Bump libpq version for Postgres 18

Open eric-weaver opened this issue 3 weeks ago • 2 comments

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

eric-weaver avatar Dec 05 '25 19:12 eric-weaver

⚠️ 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.

github-actions[bot] avatar Dec 05 '25 19:12 github-actions[bot]

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

eric-weaver avatar Dec 05 '25 20:12 eric-weaver

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

Patch for this Postgres libpq issue has been merged upstream. I'd expect it to land in 18.2

eric-weaver avatar Dec 10 '25 18:12 eric-weaver