Remove redundant gettimeofday() calls to the extent practical without

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

Commit: 27c3e3de0939d93ae8adb50ab7e00c4a5ff2fa0d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-06-20T22:52:00Z
Releases: 8.2.0
Remove redundant gettimeofday() calls to the extent practical without
changing semantics too much.  statement_timestamp is now set immediately
upon receipt of a client command message, and the various places that used
to do their own gettimeofday() calls to mark command startup are referenced
to that instead.  I have also made stats_command_string use that same
value for pg_stat_activity.query_start for both the command itself and
its eventual replacement by <IDLE> or <idle in transaction>.  There was
some debate about that, but no argument that seemed convincing enough to
justify an extra gettimeofday() call.

Files