Re: deadlocks in multiple-triggers environment

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: hubert depesz lubaczewski <depesz(at)gmail(dot)com>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: deadlocks in multiple-triggers environment
Date: 2005-06-09 14:54:21
Message-ID: 20050609145421.GA10792@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 09, 2005 at 04:26:44PM +0200, Csaba Nagy wrote:
> [snip]
> > Do say, are there foreign keys on those tables?
> >
> > If there are, that may explain the deadlocks. This is a known problem,
> > fixed in the development version, for which there is no complete
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Wow, that's a good news :-)
> Time to drop that nasty patch we're using...
> I'm not on the developers list, I guess it was discussed there, I'm
> curios what kind of solution it is ? A special foreign key thing or row
> level shared locks were implemented ?

Shared row locks. It'd be nice if you could give them a try to get some
feedback ... (we are a couple of months from beta though)

The development group is always looking for ways to annoy users by
forcing them to upgrade to newer versions ;-)

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
Bob [Floyd] used to say that he was planning to get a Ph.D. by the "green
stamp method," namely by saving envelopes addressed to him as 'Dr. Floyd'.
After collecting 500 such letters, he mused, a university somewhere in
Arizona would probably grant him a degree. (Don Knuth)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-06-09 14:57:00 Re: "returning" in postgresql request
Previous Message Tom Lane 2005-06-09 14:49:34 Re: [HACKERS] Strange transaction-id behaviour? (was Re: Two updates problem)