From: A J <s5aly@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Confused by 'timing' results
Date: Tue, 31 Aug 2010 10:42:16 -0700 (PDT)
Message-ID: <788866.21140.qm@web120020.mail.ne1.yahoo.com> (raw)
time echo '\timing \\select * from table1 where id = 123;' | psql
I am trying to time a simple select statement from different clients located at
different places. The database is on US east-coast.
In the above query. the 'timing' will time the database time and the 'time'
command at the very start will time the complete time for the query including
network time.
When I run the query on the database, I get:
Time: 2.357 ms
real 0m0.010s
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-admin@postgresql.org
Cc: s5aly@yahoo.com
Subject: Re: Confused by 'timing' results
In-Reply-To: <788866.21140.qm@web120020.mail.ne1.yahoo.com>
* 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