pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Kenneth Marshall <ktm@rice.edu>
Cc: Derrick Rice <derrick.rice@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Updating histogram_bounds after a delete
Date: Thu, 17 Mar 2011 10:05:02 -0500
Message-ID: <4D81DCCE020000250003BA27@gw.wicourts.gov> (raw)
In-Reply-To: <20110317145529.GK11541@aart.is.rice.edu>
References: <AANLkTik6FnXpdEF+edr7Jh-cmEUfjsaPRoGOmMaxxPFO@mail.gmail.com>
	<4D80EBAB020000250003B9DE@gw.wicourts.gov>
	<AANLkTikrVqwXp3ugoMLR8-6BOegSDByRCuTCFtGVBZ+E@mail.gmail.com>
	<4D81D939020000250003BA22@gw.wicourts.gov>
	<20110317145529.GK11541@aart.is.rice.edu>

Kenneth Marshall <ktm@rice.edu> wrote:
 
> I think this is it:
> 
>
http://archives.postgresql.org/pgsql-committers/2010-01/msg00021.php
 
Looks like it.  Based on the commit date, that would be a 9.0
change.  Based on the description, I'm not sure it fixes Derrick's
problem; the workaround of explicitly using min() for the low end of
a range may need to be a long-term approach.
 
It does seem odd, though, that the statistics would be off by that
much.  Unless the query is run immediately after a mass delete,
autovacuum should be fixing that.  Perhaps the autovacuum
improvements in later releases will solve the problem.  If not, an
explicit ANALYZE (or perhaps better, VACUUM ANALYZE) immediately
after a mass delete would be wise.
 
-Kevin



view thread (8+ messages)

Message-ID: <4D81DCCE020000250003BA27@gw.wicourts.gov>
Permalink:  ../4D81DCCE020000250003BA27@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D81DCCE020000250003BA27@gw.wicourts.gov

 · 

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-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, ktm@rice.edu, derrick.rice@gmail.com
  Subject: Re: Updating histogram_bounds after a delete
  In-Reply-To: <4D81DCCE020000250003BA27@gw.wicourts.gov>
  References: <AANLkTik6FnXpdEF+edr7Jh-cmEUfjsaPRoGOmMaxxPFO@mail.gmail.com> <4D80EBAB020000250003B9DE@gw.wicourts.gov> <AANLkTikrVqwXp3ugoMLR8-6BOegSDByRCuTCFtGVBZ+E@mail.gmail.com> <4D81D939020000250003BA22@gw.wicourts.gov> <20110317145529.GK11541@aart.is.rice.edu> <4D81DCCE020000250003BA27@gw.wicourts.gov>

* 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