Re: Finding the pqlib version

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Finding the pqlib version
Дата
Msg-id 200602111740.k1BHeMY01646@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Finding the pqlib version  (Christoph Zwerschke <cito@online.de>)
Ответы Re: Finding the pqlib version  (Christoph Zwerschke <cito@online.de>)
Список pgsql-interfaces
Christoph Zwerschke wrote:
> Peter Eisentraut wrote:
> > You should query the presence of the function, not the version of the 
> > library.
> 
> Yes, but it will complicate things. I will probably have to use 
> something like "configure" to do this. So far, this hasn't been 
> necessary. So I'd prefer a simple hack. Or how would you to this?

I was wondering that myself.  I am thinking you would need to use
dlopen() to check for the symbol.  Because the libpq version could
change after you compile, I can't see how you could make it a configure
check unless you said you don't allow changes to libpq after the build.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Finding the pqlib version
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Finding the pqlib version