Using JDBC and libpq in the same process

Started by Nicola Peroover 22 years ago2 messages
#1Nicola Pero
nicola@brainstorm.co.uk

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 ?

#2Dave Cramer
Dave@micro-automation.net
In reply to: Nicola Pero (#1)
Re: 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>