On 2024-06-18 05:25, Matteo Beccati wrote:
Hi,
Sure, you need to have the same version of libpq that PHP was built
with. But nothing prevents your script using pdo_pgsql or ext/pgsql to
connect to another version of postgres running either on the same
machine or a different one.
Right; the wire protocol between a (PostgreSQL 16) libpq-based client
and the server is the same going back to PostgreSQL 7.4: if your server
is older than that you'll have trouble, but we already require 9.1
(probably because of pg_version()'s use of PQlibVersion to get the
client library version).