Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: David Gould <daveg(at)sonic(dot)net>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, Alina Alexeeva <alexeeva(at)adobe(dot)com>, Rajesh Bhatia <rajbhati(at)adobe(dot)com>, Arvind Kota <akota(at)adobe(dot)com>, Jothikanth R <jothikanth(dot)r(at)efrontier(dot)com>, Ullas Lakkur Raghavendra <lakkurra(at)adobe(dot)com>
Subject: Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Date: 2018-01-11 14:39:22
Message-ID: 20180111143922.evxiss5q2n4ug74a@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-01-11 15:12:16 Re: BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Previous Message PG Bug reporting form 2018-01-11 12:53:19 BUG #15006: "make check" error if current user is "user"