Re: Dead lock - Mailing list pgsql-performance

From Tom Molesworth
Subject Re: Dead lock
Date
Msg-id 4C162680.8090502@audioboundary.com
Whole thread Raw
In response to Dead lock  (Elias Ghanem <e.ghanem@acteos.com>)
List 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


pgsql-performance by date:

Previous
From: Elias Ghanem
Date:
Subject: Dead lock
Next
From: Andy Colson
Date:
Subject: Re: query tuning help