pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
To: pgsql-docs@lists.postgresql.org
Subject: more detailed description of tup_returned and tup_fetched
Date: Fri, 14 May 2021 17:00:45 +0900
Message-ID: <9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.com> (raw)

Hi,

I worried the difference between "tup_returned" and "tup_fetched" in
pg_stat_database. I assumed that "tup_returned" means the number of tuples
that returned to clients. Of course, this is wrong.

So, why don't you describe in more detail? If my understanding is right, they
correspond to "seq_tup_read" and "idx_tup_fetch" in pg_stat_all_tables.

Regards,
-- 
Masahiro Ikeda
NTT DATA CORPORATION

Attachments:

add-more-detailed-description-of-tup_returned-and-tup_fetched.patch (text/x-patch, 935B) download diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index dcbb10fb6f..09a22a43ac 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -3712,7 +3712,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structfield>tup_returned</structfield> <type>bigint</type> </para> <para> - Number of rows returned by queries in this database + Number of live rows returned by sequential scans of queries in this database </para></entry> </row> @@ -3721,7 +3721,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structfield>tup_fetched</structfield> <type>bigint</type> </para> <para> - Number of rows fetched by queries in this database + Number of live rows fetched by index scan of queries in this database </para></entry> </row>

view thread (15+ messages)  latest in thread

Message-ID: <9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.com>
Permalink:  ../9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.com/
Also on:    postgresql.org/message-id/9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.com

 ·  · 

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-docs@postgresql.org
  Cc: ikedamsh@oss.nttdata.com
  Subject: Re: more detailed description of tup_returned and tup_fetched
  In-Reply-To: <9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.com>
  References: <9eeeccdb-5dd7-90f9-2807-a4b5d2b76ca3@oss.nttdata.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