pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gould <daveg@sonic.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-bugs@lists.postgresql.org, Alina Alexeeva <alexeeva@adobe.com>
Cc: Rajesh Bhatia <rajbhati@adobe.com>
Cc: Arvind Kota <akota@adobe.com>
Cc: Jothikanth R <jothikanth.r@efrontier.com>
Cc: Ullas Lakkur Raghavendra <lakkurra@adobe.com>
Cc: tomas.vondra@2ndquadrant.com
Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Date: Thu, 11 Jan 2018 13:45:14 -0800
Message-ID: <20180111134514.5d018bd8@engels> (raw)
In-Reply-To: <12173.1515683536@sss.pgh.pa.us>
References: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>
	<12173.1515683536@sss.pgh.pa.us>

On Thu, 11 Jan 2018 10:12:16 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> > David Gould wrote:  
> >> I've tracked down how this happens and created a reproduction script and a
> >> patch. Attached:  
> 
> > Great work.  Please make sure to register this as a bug fix in the
> > next commitfest.  
> 
> There's already an existing discussion about what seems to be the same
> issue, or at least a closely related one:
> 
> https://www.postgresql.org/message-id/flat/16db4468-edfa-830a-f921-39a50498e77e@2ndquadrant.com

Yes. I reviewed that thread, while I was researching. It is a related issue
but not the same. That one adds n_tup_dead to the reluples estimate after
vacuums. It amplifies the effect of this one which prevents analyze from
fixing reltuples.

-dg

-- 
David Gould                                   daveg@sonic.net
If simplicity worked, the world would be overrun with insects.




view thread (6+ messages)  latest in thread

Message-ID: <20180111134514.5d018bd8@engels>
Permalink:  ../20180111134514.5d018bd8@engels/
Also on:    postgresql.org/message-id/20180111134514.5d018bd8@engels

 · 

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-bugs@postgresql.org
  Cc: daveg@sonic.net, tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, alexeeva@adobe.com, rajbhati@adobe.com, akota@adobe.com, jothikanth.r@efrontier.com, lakkurra@adobe.com, tomas.vondra@2ndquadrant.com
  Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
  In-Reply-To: <20180111134514.5d018bd8@engels>
  References: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql> <12173.1515683536@sss.pgh.pa.us> <20180111134514.5d018bd8@engels>

* 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