From: Ioannis Anagnostopoulos <ioannis@anatec.com>
To: Rosser Schwarz <rosser.schwarz@gmail.com>
Cc: Claudio Freire <klaussfreire@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: A very long running query....
Date: Fri, 20 Jul 2012 22:53:46 +0100
Message-ID: <5009D36A.10506@anatec.com> (raw)
In-Reply-To: <CAFnxYwhbi6NmdNBiguwA6ObHiD=v7ayaVzrGWMZ=qfeTxZiWEA@mail.gmail.com>
References: <5007FC82.9070007@anatec.com>
<5009CB5A.7070801@anatec.com>
<CAGTBQpa07PMrLA3qsM9Zf9QXcPvgntyVX7qL9CqEwQtK9LH1hA@mail.gmail.com>
<5009CD43.8000300@anatec.com>
<CAFnxYwhbi6NmdNBiguwA6ObHiD=v7ayaVzrGWMZ=qfeTxZiWEA@mail.gmail.com>
On 20/07/2012 22:33, Rosser Schwarz wrote:
> On Fri, Jul 20, 2012 at 2:27 PM, Ioannis Anagnostopoulos
> <ioannis@anatec.com> wrote:
>> On 20/07/2012 22:23, Claudio Freire wrote:
>>> Misestimated row counts... did you try running an analyze, or upping
>>> statistic targets?
>> I have run analyse every so often. I think the problem is that as I get 16K
>> new rows every minutes, the "stats" are always out... Possible?
> It may not help much with any skew in your data that results from
> divergent data appearing, but you can update the statistics targets
> for those columns and analyze again, and the planner should have much
> better information about the distributions of their data. The max
> stats target is 10000, but the default is 100. Increasing it even
> just to 500 or 1000 should help the planner significantly.
>
> rls
>
I suppose that this is some kind of postgres.conf tweak?
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: ioannis@anatec.com, rosser.schwarz@gmail.com, klaussfreire@gmail.com
Subject: Re: A very long running query....
In-Reply-To: <5009D36A.10506@anatec.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