httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <...@apache.org>
Subject Re: Using PostgreSQL in Apache2 module
Date Mon, 23 Feb 2009 23:39:30 GMT
On Sun, 22 Feb 2009 21:40:57 +0100
Graf László <grafl@datatrans.hu> wrote:

[hmm, looks like my last reply got lost in the ether]

> Hi,
> 
> I try to use PostgreSQL's libpq in an Apache2 module.
> The test module, without libpq works fine and the test
> application for libpq works fine, too.  

Is there a good reason for using libpq directly,
rather than the Apache DBD functions?  Other things
being equal, your module will be more efficient and
play better with other PostgreSQL-using modules if
it shares a dynamic connection pool with them.

> But after restarting the Apache2 server it complains
> that it does not find the module. The new version of the
> test module is in the APACHE_HOME\modules folder and the
> httpd.conf is OK.  

Erm, that's too vague.

> I put the folders POSTGRESQL_HOME\include and POSTGRESQL_HOME\lib
> in my system's PATH but without results.  

Maybe you need to LoadFile libpq?

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message