From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Boris Kolpackov <boris@codesynthesis.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Álvaro Herrera <alvaro.herrera@2ndquadrant.com>
Subject: Re: Add version macro to libpq-fe.h
Date: Thu, 17 Jun 2021 14:41:40 -0400
Message-ID: <1036619.1623955300@sss.pgh.pa.us> (raw)
In-Reply-To: <20210617183411.2taf6r32kftvfnb3@alap3.anarazel.de>
References: <boris.20210617102439@codesynthesis.com>
<968815.1623936849@sss.pgh.pa.us>
<CA+TgmoY8PVB39k5d=OZ64Sv7ba0s32TXg9Vp6wLnCuO9cHM2QA@mail.gmail.com>
<1026744.1623950177@sss.pgh.pa.us>
<20210617183411.2taf6r32kftvfnb3@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> I'm not sure I understand why you think that exposing the version number
> for libpq is such a bad idea?
> I think it'd be reasonable to add a few more carefully chosen macros to
> pg_config_ext.h.
The primary problem I've got with that is the risk of confusion
between server and libpq version numbers. In particular, if we do
it like that then we've just totally screwed the Debian packagers.
They will have to choose whether to install pg_config_ext.h from
their server build or their libpq build. Both choices are wrong,
depending on what applications want to know.
Now we could alternatively invent a libpq_version.h and hope that
packagers remember to install the right version of that. But I
think it's a better user experience all around to do it the other
way.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com, boris@codesynthesis.com, alvaro.herrera@2ndquadrant.com
Subject: Re: Add version macro to libpq-fe.h
In-Reply-To: <1036619.1623955300@sss.pgh.pa.us>
References: <boris.20210617102439@codesynthesis.com> <968815.1623936849@sss.pgh.pa.us> <CA+TgmoY8PVB39k5d=OZ64Sv7ba0s32TXg9Vp6wLnCuO9cHM2QA@mail.gmail.com> <1026744.1623950177@sss.pgh.pa.us> <20210617183411.2taf6r32kftvfnb3@alap3.anarazel.de> <1036619.1623955300@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox