Using JDBC and libpq in the same process
Using JDBC and libpq in the same process
От:
Nicola 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 ?
Re: [JDBC] Using JDBC and libpq in the same process
От:
Dave Cramer <Dave@micro-automation.net>
Дата:
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