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

From Tom Lane
Subject Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Date
Msg-id 25819.1437102321@sss.pgh.pa.us
Whole thread Raw
In response to Re: RFC: replace pg_stat_activity.waiting with something more descriptive  (Peter Geoghegan <pg@heroku.com>)
Responses Re: RFC: replace pg_stat_activity.waiting with something more descriptive
List pgsql-hackers
Peter Geoghegan <pg@heroku.com> writes:
> I've heard that clock_gettime() with CLOCK_REALTIME_COARSE, or with
> CLOCK_MONOTONIC_COARSE can have significantly lower overhead than
> gettimeofday().

It can, but it also has *much* lower precision, typically 1ms or so.
        regards, tom lane



pgsql-hackers by date:

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