pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michel SALAIS <msalais@msym.fr>
To: pgsql-performance@postgresql.org
Subject: sql execution time in pg_stat_statements
Date: Thu, 9 Sep 2021 20:13:33 +0200
Message-ID: <005f01d7a5a6$67784b50$3668e1f0$@msym.fr> (raw)

Hi all,

 

I think that total_time in pg_stat_statements is cpu time + possible waits.
So, can I say that:

Total_sql_time = total_time + blk_read_time + blk_write_time

 

Documentation is not clear at all on that.

 

Thanks in advance 

 

Michel SALAIS

view thread (7+ messages)  latest in thread

Message-ID: <005f01d7a5a6$67784b50$3668e1f0$@msym.fr>
Permalink:  ../005f01d7a5a6$67784b50$3668e1f0$@msym.fr/
Also on:    postgresql.org/message-id/005f01d7a5a6$67784b50$3668e1f0$@msym.fr

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: msalais@msym.fr
  Subject: Re: sql execution time in pg_stat_statements
  In-Reply-To: <005f01d7a5a6$67784b50$3668e1f0$@msym.fr>

* 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