From: Simon Riggs <simon@2ndQuadrant.com>
To: Kris Jurka <books@ejurka.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Daniel Migowski <dmigowski@ikoffice.de>
Cc: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Deadlock detection
Date: Thu, 04 Jun 2009 22:53:33 +0100
Message-ID: <1244152413.23910.311.camel@ebony.2ndQuadrant> (raw)
In-Reply-To: <alpine.BSO.2.00.0906011917360.27919@leary.csoft.net>
References: <1232531884.2327.342.camel@ebony.2ndQuadrant>
<49771246.9020306@ikoffice.de>
<1232583410.2327.704.camel@ebony.2ndQuadrant>
<4977BB90.8090806@opencloud.com>
<4977C8FD.7040204@opencloud.com>
<4977D10A.9040706@opencloud.com>
<Pine.BSO.4.64.0901212054040.3967@leary.csoft.net>
<4977D3DC.1080806@opencloud.com>
<alpine.BSO.2.00.0906011917360.27919@leary.csoft.net>
On Mon, 2009-06-01 at 19:30 -0400, Kris Jurka wrote:
> 1) It avoids deadlocks by buffering the writes in local memory. That's
> great, but wasn't really the point of the thread. Would we suggest people
> run with antiDeadlock=true in a production environment to avoid deadlocks?
> If so, why wouldn't it be the default.
> So it's a useful piece of code, but I'm not sure what context it should
> really be used in. Is anyone using this? For what purpose?
The reason the code was written went away before the code could sensibly
be used. We removed the contention in the database by redesign rather
than by JDBC changes. Thanks to Oliver for taking the time.
Having said that, it is clear there were some issues there that are not
fully explained. It may be that it is a JDBC driver issue, but also it
may be a protocol/handling issue. Intermittent issues are hard to get a
full state on to debug, and we are left looking at spoor or wishing we
had some.
I would like to see code added to the driver for (1), or other code. My
main request is that we have some way of responding to the problems that
we know can exist. The main argument for not buffering everything would
be performance, I think. 99.9% of users are happy as is, so to act in a
way that effects them would be bad. Sometimes, a "safe mode" would be a
useful thing to be able to enable, as a way of eliminating doubt.
--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support
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: simon@2ndQuadrant.com, books@ejurka.com, oliver@opencloud.com, dmigowski@ikoffice.de
Subject: Re: Deadlock detection
In-Reply-To: <1244152413.23910.311.camel@ebony.2ndQuadrant>
References: <1232531884.2327.342.camel@ebony.2ndQuadrant> <49771246.9020306@ikoffice.de> <1232583410.2327.704.camel@ebony.2ndQuadrant> <4977BB90.8090806@opencloud.com> <4977C8FD.7040204@opencloud.com> <4977D10A.9040706@opencloud.com> <Pine.BSO.4.64.0901212054040.3967@leary.csoft.net> <4977D3DC.1080806@opencloud.com> <alpine.BSO.2.00.0906011917360.27919@leary.csoft.net> <1244152413.23910.311.camel@ebony.2ndQuadrant>
* 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