From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: stanislaw.skonieczny@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14858: Inaccurate estimations after bulk delete and bulk insert
Date: Mon, 16 Oct 2017 18:27:39 +0200
Message-ID: <20171016162739.wglwr26sk7vzrlhh@alvherre.pgsql> (raw)
In-Reply-To: <20171016140634.8204.51094@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
stanislaw.skonieczny@gmail.com wrote:
> In our product we have found that PG is choosing full scan on a big table
> instead using indexes.
> This was caused caused by very inaccurate estimations of total number of
> rows in the table.
Stanislaw emailed the -owner address with the attached email.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Bug reference: 14858
I attach sample script to resproduce the problem and it's output.
Stanisław Skonieczny
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugsAttachments:
bad_estimates.sql (application/sql, 1.5K) download
result (application/octet-stream, 4.9K) download
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@2ndquadrant.com, stanislaw.skonieczny@gmail.com
Subject: Re: BUG #14858: Inaccurate estimations after bulk delete and bulk insert
In-Reply-To: <20171016162739.wglwr26sk7vzrlhh@alvherre.pgsql>
References: <20171016140634.8204.51094@wrigleys.postgresql.org> <20171016162739.wglwr26sk7vzrlhh@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