From: David Gould <daveg@sonic.net>
To: 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>
Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Date: Mon, 22 Jan 2018 23:52:24 -0800
Message-ID: <20180122235224.22bf654d@engels> (raw)
In-Reply-To: <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>
References: <20180111041757.7858c2ae@engels>
<20180111143922.evxiss5q2n4ug74a@alvherre.pgsql>
On Thu, 11 Jan 2018 11:39:22 -0300
Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> 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.
>
Done last week. See:
https://www.postgresql.org/message-id/flat/20180117164916.3fdcf2e9@engels/
I think this should be considered for back-patching, the bug exists in all
versions back to 9.4 (and probably earlier, but I did not test those).
-dg
--
David Gould daveg@sonic.net
If simplicity worked, the world would be overrun with insects.
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, alvherre@alvh.no-ip.org, 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: <20180122235224.22bf654d@engels>
References: <20180111041757.7858c2ae@engels> <20180111143922.evxiss5q2n4ug74a@alvherre.pgsql> <20180122235224.22bf654d@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