Skip site navigation (1) Skip section navigation (2)

Re: Finding the pqlib version

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christoph Zwerschke <cito(at)online(dot)de>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Finding the pqlib version
Date: 2006-02-11 17:40:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-interfaces by date

Next:From: Peter EisentrautDate: 2006-02-11 19:39:47
Subject: Re: Finding the pqlib version
Previous:From: Tom LaneDate: 2006-02-11 17:39:37
Subject: Re: Finding the pqlib version

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group