Re: RFC: replace pg_stat_activity.waiting with something more descriptive - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Date
Msg-id CAM3SWZRwo6i0gminoLugvfsnuBksdXuBW60wwHf_QXxsC-Xv0w@mail.gmail.com
Whole thread Raw
In response to Re: RFC: replace pg_stat_activity.waiting with something more descriptive  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: RFC: replace pg_stat_activity.waiting with something more descriptive
List pgsql-hackers
On Tue, Jul 14, 2015 at 7:25 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> FWIW, I entirely share Robert's opinion that adding gettimeofday()
> overhead in routinely-taken paths is likely not to be acceptable.

I think that it can depend on many factors. For example, the
availability of vDSO support on Linux/glibc.

I've heard that clock_gettime() with CLOCK_REALTIME_COARSE, or with
CLOCK_MONOTONIC_COARSE can have significantly lower overhead than
gettimeofday().
-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file
Next
From: Tom Lane
Date:
Subject: Re: Bugs in our qsort implementation