Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with Postgres 166 libpq-dev in debian. #1006

Merged
merged 7 commits into from
Sep 25, 2023
Merged

Conversation

dimitri
Copy link
Contributor

@dimitri dimitri commented Sep 20, 2023

Build passes locally with a released version of Postgres 16.0 and still builds with previous version. Still missing CI changes to pass all the test suite with PGVERSION=16.

Fixes #1005.

Build passes locally with a released version of Postgres 16.0 and still
builds with previous version. Still missing CI changes to pass all the test
suite with PGVERSION=16.

See #1005.
The internal organisation of the header files in Postgres 16 changed in a
way that we can't poke into libpq-int.h anymore, when building on debian,
because of the way the include/common bits are including in libpq (16)
rather than in the postgresql-server-dev-16 parts.

That said, we can stop looking into the internal details of libpq:

  - connection->last_sqlstate allowed an optimisation to conclude that the
    connection is okay early in the polling.

  - connection->auth_req_received allowed to discard authentication error as
    connectivity problems, but we decided in the past that we need to deploy
	a monitor user on the Postgres nodes anyway, to avoid flooding Postgres
	logs with authentication errors.
Allow building for Postgres 16 and Citus 12.1.0.
@dimitri dimitri changed the title Add support for Postgres 16. Fix build with Postgres 166 libpq-dev in debian. Sep 25, 2023
@dimitri dimitri merged commit 7204e2a into main Sep 25, 2023
27 of 32 checks passed
@dimitri dimitri deleted the feature/pg16-compat branch September 25, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PostgreSQL 16 support
1 participant