pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: diptatapa@gmail.com
Subject: BUG #17399: Dead tuple number stats not updated on long running queries
Date: Tue, 08 Feb 2022 01:40:32 +0000
Message-ID: <17399-3dde82c18cf8e957@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17399
Logged by:          Soni
Email address:      diptatapa@gmail.com
PostgreSQL version: 13.5
Operating system:   Red Hat Enterprise Linux release 8.5 (Ootpa)
Description:        

Hello All,
I think I found a bug.

While there are long running queries, a vacuum that start and end during the
long running queries, the stats of pg_stat_user_tables.n_dead_tup not
updated. The real dead tuple on the table is cleaned up, but not the
stats.
So, if dead tuple percentage on pg_stat_user_tables is above
autovacuum_vacuum_scale_factor, then the autovacuum keeps triggered during
the long running queries.



view thread (6+ messages)  latest in thread

Message-ID: <17399-3dde82c18cf8e957@postgresql.org>
Permalink:  ../17399-3dde82c18cf8e957@postgresql.org/
Also on:    postgresql.org/message-id/17399-3dde82c18cf8e957@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, diptatapa@gmail.com
  Subject: Re: BUG #17399: Dead tuple number stats not updated on long running queries
  In-Reply-To: <17399-3dde82c18cf8e957@postgresql.org>

* 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