Re: Frequent 'deadlock detected' in 7.4 ... or just my bad code?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Frequent 'deadlock detected' in 7.4 ... or just my bad code?
Date: 2004-04-05 17:41:18
Message-ID: 13458.1081186878@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> D'oh ... just tested my assumption, it was wrong ... *sigh* okay, back
> to the drawing board on the code ...

Can't you just change

>> foreach $company_id ( keys %traffic ) {

to

>> foreach $company_id ( sort keys %traffic ) {

etc.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Matt Clark 2004-04-05 17:41:20 Re: Frequent 'deadlock detected' in 7.4 ... or just my bad
Previous Message Gastón Simone 2004-04-05 17:41:17 Migrating from a slave disk