What does \timing measure? - Mailing list pgsql-general

From Daniel Tahara
Subject What does \timing measure?
Date
Msg-id CACDEi8Noi54jmEhSJ1vNFLmeZ6wOsiTqGxh0wCKdK1y-aChK3g@mail.gmail.com
Whole thread Raw
Responses Re: What does \timing measure?  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
I am attempting to benchmark a number of queries over a 15GB dataset with ~ 10mil records. When I run linux time on the query execution (single column projection), it returns 1 minute, but the \timing command returns only 15 seconds? Can someone explain the difference? 1 minute is consistent with reading the 15gb from disk at 250mb/s (I have SSDs), but is \timing supposed to include that cost? Or simply the computation time plus the time to return results.

Thank you.

Daniel

Computer Science
Yale University, Class of 2014
daniel.tahara@yale.edu
(646) 397-6379

pgsql-general by date:

Previous
From: "Hall, Samuel L (Sam)"
Date:
Subject: backup and restore functions
Next
From: Jeff Janes
Date:
Subject: Re: What does \timing measure?