Re: Confused by 'timing' results - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: Confused by 'timing' results
Date
Msg-id 4C7D00330200002500034ED2@gw.wicourts.gov
Whole thread Raw
In response to Confused by 'timing' results  (A J <s5aly@yahoo.com>)
Responses Re: Confused by 'timing' results  (A J <s5aly@yahoo.com>)
Re: Confused by 'timing' results  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: A J
Date:
Subject: Confused by 'timing' results
Next
From: A J
Date:
Subject: Re: Confused by 'timing' results