On Tue, Jul 14, 2015 at 7:25 AM, Tom Lane <t...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers