Jim Nasby <Jim.Nasby@bluetreble.com> writes:
> On 12/28/16 11:25 AM, Tom Lane wrote:
>> The idea of just capturing the wait start for heavyweight locks, and
>> not other lock types, still seems superior to any of the alternatives
>> that have been suggested ...
> Is some kind of alarm a viable option for the others? If setting the
> alarm is cheap,
Setting an alarm is certain to require a gettimeofday and/or a kernel
call. It is far from cheap.
regards, tom lane