Re: querying the version of libpq

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: querying the version of libpq
Дата
Msg-id AANLkTinNsPfdJ+67cRQTvqrEEwGkEgH09T0A+ov86s_o@mail.gmail.com
обсуждение исходный текст
Ответ на Re: querying the version of libpq  ("Greg Sabino Mullane" <greg@turnstep.com>)
Ответы Re: querying the version of libpq  ("Greg Sabino Mullane" <greg@turnstep.com>)
Re: querying the version of libpq  ("Massa, Harald Armin" <chef@ghum.de>)
Re: querying the version of libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 5 October 2010 16:33, Greg Sabino Mullane <greg@turnstep.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
>
>>> if ($dbh->{pg_lib_version} >= 90000) {
>>>
>>> I'd raise a bug with psycopg2 if it does not provide that information.
>>
>> How does the driver figure it out?
>
> DBD::Pg parses pg_config --version, then passes the information
> to the C programs for directive fiddling. I certainly hope
> other drivers are doing the same, as libpq varies across
> major versions a good deal.

I would imagine that most libpq wrapping drivers use libpq's
PQserverVersion(), which returns an integer that looks like 90000.


--
Regards,
Peter Geoghegan

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: querying the version of libpq
Следующее
От: Chris Velevitch
Дата:
Сообщение: Re: Group By Question