Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbNH2-0004EH-Ci for pgsql-docs@arkaria.postgresql.org; Mon, 04 Apr 2022 14:01:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nbNH0-0004hH-Sd for pgsql-docs@arkaria.postgresql.org; Mon, 04 Apr 2022 14:01:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbNH0-0004h8-LL for pgsql-docs@lists.postgresql.org; Mon, 04 Apr 2022 14:01:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbNGv-0004Of-JK for pgsql-docs@lists.postgresql.org; Mon, 04 Apr 2022 14:01:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 234E1Vx61886051; Mon, 4 Apr 2022 10:01:31 -0400 From: Tom Lane To: Kouber Saparev cc: pgsql-docs@lists.postgresql.org Subject: Re: Indexes documentation bug In-reply-to: References: Comments: In-reply-to Kouber Saparev message dated "Mon, 04 Apr 2022 15:21:24 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1886049.1649080891.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Apr 2022 10:01:31 -0400 Message-ID: <1886050.1649080891@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kouber Saparev writes: > I believe there is an error within this sentence in section > https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING= -PG-STAT-USER-FUNCTIONS-VIEW > "Therefore, a bitmap scan increments the > pg_stat_all_indexes.idx_tup_read count(s) > for the index(es) it uses, and it increments the pg_stat_all_tables. > idx_tup_fetch count for the table, but it does not affect > pg_stat_all_indexes.idx_tup_fetch." > There is repeated mentioning of pg_stat_all_indexes.idx_tup_fetch while = I > suppose one should read pg_stat_all_indexes.idx_scan instead the second > time. I.e. bitmap scans do not increment idx_scan. Um ... you did notice that the mentions of idx_tup_fetch apply to two different views, pg_stat_all_tables vs pg_stat_all_indexes? regards, tom lane