Re: Number of updated rows in postgres

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: Debraj Manna <subharaj(dot)manna(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Number of updated rows in postgres
Date: 2018-03-22 17:13:23
Message-ID: CAGDYbUOaErFFz0R+1P3p_KeT=ieSdBBFGD0ZZZtp0uEpNfX6MA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Debraj,

When you perform the update then n_tup_udate get increments where as insert
or delete increments tup_inserted or tup_deleted in pg_stat_all_tables or
pg_stat_database and vacuum use to remove dead rows.

<http://www.shreeyansh.com>

On Thu, Mar 22, 2018 at 9:32 PM, Debraj Manna <subharaj(dot)manna(at)gmail(dot)com>
wrote:

> How are the counters n_tup_update from *pg_stat_all_tables or
> tup_updated from pg_stat_database incremented? Is it only when we perform
> update or upsert or it can be incremented also when vaccum runs or we do
> insert or delete? *
>
> *I am asking in terms of postgres 9.5.4 running on Ubuntu 14.*
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Heinemann, Manfred (IMS) 2018-03-22 19:30:56 RE: Function search_path
Previous Message Debraj Manna 2018-03-22 16:02:56 Number of updated rows in postgres