Skip to content

Conversation

@jeltz
Copy link
Contributor

@jeltz jeltz commented Feb 11, 2026

The headers of libpq already give us nice defines for almost all features we want to support based when available so let's just trust libpq-fe.h to simplify our code.

The only exception is PQresultMemorySize() which we need to check for manually since it was added in PostgreSQL 12, before libq-fe.h started adding defines for new features.

The headers of libpq already give us nice defines for almost all
features we want to support based when available so let's just trust
libpq-fe.h to simplify our code.

The only exception is PQresultMemorySize() which we need to check for
manually since it was added in PostgreSQL 12, before libq-fe.h started
adding defines for new features.
@larskanis
Copy link
Collaborator

The downside is, that there's no central point in the sources, where we can add the related PostgreSQL version like

have_func 'PQsetChunkedRowsMode', 'libpq-fe.h' # since PostgreSQL-17

This makes cleaning up later a bit more difficult.

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.

2 participants