Hi,

I have to work on some software which is using JDBC and libpq (via JNI) in
the same process to connect to the same Postgres database.  The software
is heavily multithreaded.

When running under heavy loads and accessing the database under JDBC and
libpq at the same time, we get obscure JVM crashes.

Before I even start debugging this, I wanted to ask - is there any known
fundamental reason why JDBC and libpq should *not* be used at the same
time in the same process ?


Thu, 9 Oct 2003 12:30:24 +0100 (BST)
Nicola Pero <nicola@brainstorm.co.uk>
Using JDBC and libpq in the same process
Nicola,

No, the driver does not use libpq it uses it's own socket code.

Dave
On Thu, 2003-10-09 at 07:30, Nicola Pero wrote:
> Hi,
> 
> I have to work on some software which is using JDBC and libpq (via JNI) in
> the same process to connect to the same Postgres database.  The software
> is heavily multithreaded.
> 
> When running under heavy loads and accessing the database under JDBC and
> libpq at the same time, we get obscure JVM crashes.
> 
> Before I even start debugging this, I wanted to ask - is there any known
> fundamental reason why JDBC and libpq should *not* be used at the same
> time in the same process ?
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 
-- 
Dave Cramer <Dave@micro-automation.net>


09 Oct 2003 08:32:10 -0400
Dave Cramer <Dave@micro-automation.net>
Re: Using JDBC and libpq in the same process