Re: Is there a way to know write statistics on an individual index

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: higherone <higherone(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Is there a way to know write statistics on an individual index
Date: 2022-12-08 10:53:16
Message-ID: CAApHDvrW8OLrw-GTe8gfURN8ShSi_pwo=T1XOFY0heopiH7Rpg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 8 Dec 2022 at 19:59, higherone <higherone(at)gmail(dot)com> wrote:
> I know there's a pg_stats_user_indexes that gives statistics about the index scans/fetches, but I don't find any information about how many writes(insert/update/delete) happen on this individual index.
> Is there some tool that could achieve this?

Is this a partial index? If not, those should just increase at the
same rate that's mentioned in pg_stat_user_tables for the table that
the index belongs to.

David

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kirk Wolak 2022-12-08 14:52:52 Re: Getting PSQL in Windows to support TAB/Autocomplete via modified readline...
Previous Message G Chandrasekar 2022-12-08 07:13:01 Reading from replication slot fails if publication is dropped and created.