Re: [BUGS] BUG #14858: Inaccurate estimations after bulk delete andbulk insert - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: [BUGS] BUG #14858: Inaccurate estimations after bulk delete andbulk insert
Date
Msg-id 20171016162739.wglwr26sk7vzrlhh@alvherre.pgsql
Whole thread Raw
In response to [BUGS] BUG #14858: Inaccurate estimations after bulk delete and bulk insert  (stanislaw.skonieczny@gmail.com)
List pgsql-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-bugs

Attachment

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type
Next
From: Tomas Vondra
Date:
Subject: Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type