From: | <pgsql-interfaces(at)commandprompt(dot)com> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | libpq++ in Apache Problem. |
Date: | 2001-05-28 02:22:03 |
Message-ID: | Pine.LNX.4.30.0105271914200.14985-100000@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-interfaces |
Good day,
I'm experiencing a truly strange issue with the libpq++ interface when I
run it within an Apache process, and I was hoping that perhaps someone
else has run into this.
Inside of an Apache module I am developing, I need to make calls to
PostgreSQL, so I am building it with the libpq++ interface. It's worked
fine thus far, because the module is designed to keep a persistent
connection to PostgreSQL by having a PgDatabase* object that lives and
dies with each httpd process.
However, if I try to instantiate a PgDatabase* connection temporarily
within the httpd process, even though I delete the pointer to call the
destructor of the Object, the postmaster connection *continues to hang
around*, well after the request has finished processing, and well after
the call to its destructor is made.
I thought this might have something to do with the kind of convoluted way
that I'm linking my Apache module (which is written in C++, while Apache
is compiled in C) so I wrote a test case of a simple console application
that is written in C, but calls to object code compiled in C++ with
libpq++, and it behaved correctly. I was able to call destructors fine,
and memory was instantly returned and the connection closed.
So... I'm really at a loss here on what's going on, and wondering if
anyone has some insight? I can give more technical details if necessary,
that's just the gist of the problem.
Thanks, and Regards,
Jw.
--
John Worsley - Command Prompt, Inc.
jlx(at)commandprompt(dot)com By way of pgsql-interfaces(at)commandprompt(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2001-05-28 04:36:23 | Re: PQsetdbLogin bug? |
Previous Message | Bruce Momjian | 2001-05-28 00:36:54 | Re: Patch for JDBC fractional hour timezone offset bug |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2001-05-28 05:02:17 | remote database queries |
Previous Message | radius | 2001-05-27 16:17:20 | access + odbc = readonly!?!?!? |