Re: querying the version of libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: querying the version of libpq
Дата
Msg-id 1013.1286312420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: querying the version of libpq  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-general
"Greg Sabino Mullane" <greg@turnstep.com> writes:
>> The real problem is that neither of these can be trusted to tell you the
>> *library* version.  PQserverVersion() is something else altogether,
>> and I wouldn't want to assume that pg_config exactly matches the library
>> you're linked to --- if it's even present at all.

> Er...yes it will match exact...because we[1] get the location of the
> library files from pg_config as well. :) Handy little utility that.

[ shrug... ]  It's not at all hard to think of scenarios where that will
give you misleading results, even granted that you're willing to fall
over when pg_config isn't present.  But regardless of that, the
technique simply isn't available to ordinary C code using the standard
dynamic linker.

            regards, tom lane

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: querying the version of libpq
Следующее
От: Tim Uckun
Дата:
Сообщение: Re: Trying to figure out why these queries are so slow