Thread: Using JDBC and libpq in the same process

Using JDBC and libpq in the same process

From
Nicola Pero
Date:
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 ?


Re: Using JDBC and libpq in the same process

From
Dave Cramer
Date:
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>