Re: PATCH: Report libpq version and configuration

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: PATCH: Report libpq version and configuration
Дата
Msg-id CAGRY4nxyXTrHEDJmaHMUt+3iVwwJ2n3Hc22jhQBGsb2P=-2=JQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PATCH: Report libpq version and configuration  (Craig Ringer <craig.ringer@enterprisedb.com>)
Ответы Re: PATCH: Report libpq version and configuration
Список pgsql-hackers
On Tue, Nov 10, 2020 at 2:22 PM Craig Ringer <craig.ringer@enterprisedb.com> wrote:

The main things I'd really like to get in place are a way to get the version as an ELF data symbol, and a simple way to ID the binary.

So the minimal change would be to declare:

const char LIBPQ_VERSION_STR[] = PG_VERSION_STR;
const int LIBPQ_VERSION_NUM = PG_VERSION_NUM;

then change PQgetVersion() to return LIBPQ_VERSION_NUM and add a PQgetVersionStr() that returns LIBPQ_VERSION_STR.

That OK with you?

Proposed minimal patch attached.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Misuse of TimestampDifference() in the autoprewarm feature of pg_prewarm
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: logical streaming of xacts via test_decoding is broken