X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 19A499DCB86 for ; Sat, 11 Feb 2006 21:58:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72073-03 for ; Sat, 11 Feb 2006 21:58:31 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 985629DCB8B for ; Sat, 11 Feb 2006 21:58:25 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k1C1wUC12064; Sat, 11 Feb 2006 20:58:30 -0500 (EST) From: Bruce Momjian Message-Id: <200602120158.k1C1wUC12064@candle.pha.pa.us> Subject: Re: Finding the pqlib version In-Reply-To: <43EE7ACB.5060808@online.de> To: Christoph Zwerschke Date: Sat, 11 Feb 2006 20:58:30 -0500 (EST) CC: pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.124 required=5 tests=[AWL=0.124] X-Spam-Score: 0.124 X-Spam-Level: X-Archive-Number: 200602/37 X-Sequence-Number: 6001 Christoph Zwerschke wrote: > Bruce Momjian wrote: > > 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. > > The situation I was talking about is that you have a pre-compiled Python > and PostgreSQL installed on your system, together with their header > files, but you do not have the full source of Python and PostgreSQL > available. I want to be able to compile PyGreSQL as a Python extension > which is using functions from the python.dll and the libpq.dll, assuming > that the installed header files match the installed dlls. Right, but assume you want to distribute that binary to others who might have a different version of libpq. This is required by packagers and a run-time test is best in those cases. -- 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