pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Christoph Zwerschke <cito@online.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Finding the pqlib version
Date: Sat, 11 Feb 2006 12:40:22 -0500 (EST)
Message-ID: <200602111740.k1BHeMY01646@candle.pha.pa.us> (raw)
In-Reply-To: <43EE066B.7000900@online.de>

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, Pennsylvania 19073



view thread (33+ messages)  latest in thread

Message-ID: <200602111740.k1BHeMY01646@candle.pha.pa.us>
Permalink:  ../200602111740.k1BHeMY01646@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200602111740.k1BHeMY01646@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, cito@online.de
  Subject: Re: Finding the pqlib version
  In-Reply-To: <200602111740.k1BHeMY01646@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox