Re: pgsql: Reset 'ps' display just once when resolving VXID conflicts.

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-committers@postgresql.org
Date: 2010-12-17T14:52:04Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Reset 'ps' display just once when resolving VXID conflicts.

Robert Haas <rhaas@postgresql.org> writes:
> Reset 'ps' display just once when resolving VXID conflicts.
> This prevents the word "waiting" from briefly disappearing from the ps
> status line when ResolveRecoveryConflictWithVirtualXIDs begins a new
> iteration of the outer loop.

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?

			regards, tom lane