pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: tim_wilson <tim.wilson@telogis.com>
To: pgsql-performance@postgresql.org
Subject: Re: autovacuum vacuum creates bad statistics for planner when it log index scans: 0
Date: Mon, 23 Jun 2014 17:39:47 -0700 (PDT)
Message-ID: <1403570387738-5808509.post@n5.nabble.com> (raw )
In-Reply-To: <1402440085834-5806747.post@n5.nabble.com >
References: <1400459729388-5804416.post@n5.nabble.com >
<11299.1400559202@sss.pgh.pa.us >
<1402016119875-5806283.post@n5.nabble.com >
<1402037012706-5806302.post@n5.nabble.com >
<1402053752755-5806320.post@n5.nabble.com >
<1402436240210-5806743.post@n5.nabble.com >
<6448.1402438054@sss.pgh.pa.us >
<1402440085834-5806747.post@n5.nabble.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Have been looking at lazyvacuum.c trying to think of a way of changing the
calculation of the stats to ensure that my hot table stats do not get so
badly distorted.
What I have noticed is that when I reindex my hot table the stats on the
table do not seem to change in pg_stat_user_tables (ie they stay bad) but
the EXPLAIN for the query starts using the correct index again.
The index itself does not seem very bloated but reindex seems to alter the
query optimizer choices. I can't see in index.c where side effect would be
caused.
Why is this? Not sure if this is entirely helpful as reindex takes exclusive
lock, but if I used a concurrent rebuild and rename of the index I might be
able to work around this.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/autovacuum-vacuum-creates-bad-statistics-for-planner-when-it...
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
view thread (11+ messages)
Message-ID: <1403570387738-5808509.post@n5.nabble.com>
Permalink: ../1403570387738-5808509.post@n5.nabble.com/
Also on: postgresql.org/message-id/1403570387738-5808509.post@n5.nabble.com
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tim.wilson@telogis.com
Subject: Re: autovacuum vacuum creates bad statistics for planner when it log index scans: 0
In-Reply-To: <1403570387738-5808509.post@n5.nabble.com>
* 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