Re: [COMMITTERS] pgsql: Reset 'ps' display just once when resolving VXID conflicts. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Reset 'ps' display just once when resolving VXID conflicts.
Date
Msg-id 752.1292602827@sss.pgh.pa.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Reset 'ps' display just once when resolving VXID conflicts.  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [COMMITTERS] pgsql: Reset 'ps' display just once when resolving VXID conflicts.  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Dec 17, 2010 at 9:52 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I imagine the reason for the original coding was to avoid a useless
>> gettimeofday kernel call in the common case that there are no
>> conflicting xacts to wait for. �Could we restore that behavior?

> Something like the attached?

I would just add the return-at-the-top.  Changing the loop logic is
not necessary --- the loop test is cheap.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug in SignalSomeChildren
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)