From: Oliver Jowett <oliver@opencloud.com>
To: Palle Girgensohn <girgen@pingpong.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Threading problem
Date: Sat, 23 Apr 2005 10:08:12 +1200
Message-ID: <426975CC.1040303@opencloud.com> (raw)
In-Reply-To: <DF605924268F532C59AA8C47@rambutan.pingpong.net>
References: <DF605924268F532C59AA8C47@rambutan.pingpong.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, girgen@pingpong.net
Subject: Re: Threading problem
In-Reply-To: <426975CC.1040303@opencloud.com>
References: <DF605924268F532C59AA8C47@rambutan.pingpong.net> <426975CC.1040303@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox