pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: A J <s5aly@yahoo.com>
Subject: Re: Confused by 'timing' results
Date: Tue, 31 Aug 2010 13:14:27 -0500
Message-ID: <4C7D00330200002500034ED2@gw.wicourts.gov> (raw)
In-Reply-To: <788866.21140.qm@web120020.mail.ne1.yahoo.com>
References: <788866.21140.qm@web120020.mail.ne1.yahoo.com>

A J <s5aly@yahoo.com> wrote:
 
> time echo '\timing \\select * from  table1 where id = 123;' | psql
 
> 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.
 
No, the 'timing' will say how long it took to send the query from
psql to the server and get the complete response back from the
server.  The 'time' command will also include the time to start
psql, establish the connection to the database, read from the pipe,
and close the connection to the database.
 
-Kevin



view thread (23+ messages)  latest in thread

Message-ID: <4C7D00330200002500034ED2@gw.wicourts.gov>
Permalink:  ../4C7D00330200002500034ED2@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4C7D00330200002500034ED2@gw.wicourts.gov

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, s5aly@yahoo.com
  Subject: Re: Confused by 'timing' results
  In-Reply-To: <4C7D00330200002500034ED2@gw.wicourts.gov>
  References: <788866.21140.qm@web120020.mail.ne1.yahoo.com> <4C7D00330200002500034ED2@gw.wicourts.gov>

* 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