From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rafael Martinez <r.m.guerrero@usit.uio.no>
Cc: pgsql-performance@postgresql.org
Subject: Re: timing != log duration
Date: Wed, 21 Mar 2012 10:11:22 -0400
Message-ID: <29855.1332339082@sss.pgh.pa.us> (raw)
In-Reply-To: <4F69BE88.30905@usit.uio.no>
References: <4F69BE88.30905@usit.uio.no>
Rafael Martinez <r.m.guerrero@usit.uio.no> writes:
> I am wondering why the time reported by \timing in psql is not the same
> as the time reported by duration in the log file when log_duration or
> log_min_duration_statement are on?
Network transmission delays, perhaps? psql reports the elapsed time
seen at the client, which is necessarily going to be somewhat more than
the time taken by the server.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, r.m.guerrero@usit.uio.no
Subject: Re: timing != log duration
In-Reply-To: <29855.1332339082@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox