Re: Threading problem - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Threading problem
Date
Msg-id 426975CC.1040303@opencloud.com
Whole thread Raw
In response to Threading problem  (Palle Girgensohn <girgen@pingpong.net>)
Responses Re: Threading problem
List pgsql-jdbc
Palle Girgensohn wrote:

> First, we cannot see anything in our code that would offer the
> possibility for two threads to get hold of the same postgresql
> connection. There might be something we're missing, but the only changes
> made from a working system is updates of postgresql and its JDBC driver,
> so it's easy to suspect a bug in the jdbc driver...

There's really no shared state between different connections -- they're
each independent objects with their own protocol layer objects, TCP
connection etc. So it's hard to see how there could be a bug where two
different Connection objects end up using the same physical connection..
I'd be more suspicious of your application or connection pool.

-O

pgsql-jdbc by date:

Previous
From: Palle Girgensohn
Date:
Subject: Re: BUG? res.next() == false, but psql finds tuples?
Next
From: Oliver Jowett
Date:
Subject: Re: BUG? res.next() == false, but psql finds tuples?