pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: David Gould <daveg@sonic.net>
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>
Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Date: Thu, 11 Jan 2018 11:39:22 -0300
Message-ID: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql> (raw)
In-Reply-To: <20180111041757.7858c2ae@engels>

David Gould wrote:

> I've tracked down how this happens and created a reproduction script and a
> patch. Attached:
> 
> - vac_estimate_reltuples.patch     Patch against master
> - README.txt                       Instructions for testing
> - reltuples_analyze_bug.sql        Reproduction script
> - analyze_counts.awk               Helper for viewing results of test
> - test_standard.txt                Test output for unpatched postgresql 10.1
> - test_patched.txt                 Test output with patch

Great work.  Please make sure to register this as a bug fix in the
next commitfest.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (6+ messages)  latest in thread

Message-ID: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>
Permalink:  ../20180111143922.evxiss5q2n4ug74a@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180111143922.evxiss5q2n4ug74a@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, daveg@sonic.net, alexeeva@adobe.com, rajbhati@adobe.com, akota@adobe.com, jothikanth.r@efrontier.com, lakkurra@adobe.com
  Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
  In-Reply-To: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>
  References: <20180111041757.7858c2ae@engels> <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>

* 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