Re: Runaway backend at 100% CPU PostgreSQL v8.3.5

From: "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Runaway backend at 100% CPU PostgreSQL v8.3.5
Date: 2009-01-07 00:33:27
Message-ID: 20090107003327.GD13379@cuci.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>"Stephen R. van den Berg" <srb(at)cuci(dot)nl> writes:
>> BEGIN
>> vcsid:=vfrom;
>> LOOP

>> EXIT WHEN vsid IS NOT NULL OR vcsid=vold;
>> END LOOP;
>> RETURN vsid;
>> END;

>And are you certain that's never an infinite loop? The query string
>gives a starting point that one suspects doesn't terminate.

Indeed, you're right. It starts at a deleted item due to a race condition.
Thanks, sorry for the noise.
--
Sincerely,
Stephen R. van den Berg.

"Very funny, Mr. Scott. Now beam down my clothes!"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2009-01-07 00:55:11 Re: Warning about the 8.4 release
Previous Message Joshua D. Drake 2009-01-07 00:18:54 Re: Re: [COMMITTERS] pgsql: This makes all the \dX commands (most importantly to most: \df)