Re: Dead lock

From: Tom Molesworth <tom(at)audioboundary(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Dead lock
Date: 2010-06-14 12:54:24
Message-ID: 4C162680.8090502@audioboundary.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 14/06/10 12:50, Elias Ghanem wrote:
> SELECT INTO DUMMY DBLINK_EXEC(''CONNECTION_STRING TO DB3',
> ''UPDATE IN_FICHE_PRODUIT SET VALIDE = 1'');

If there's more than one value in that table, an explicit ORDER BY might
help (otherwise you could get the situation where query A will update in
the order 1,2,3 and query B will do 3,2,1 so neither will be able to get
the requested locks until the other query has finished).

Tom

In response to

  • Dead lock at 2010-06-14 11:50:43 from Elias Ghanem

Browse pgsql-performance by date

  From Date Subject
Next Message Andy Colson 2010-06-14 13:50:40 Re: query tuning help
Previous Message Elias Ghanem 2010-06-14 11:50:43 Dead lock