pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Romuald Brunet <romuald.brunet@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slower query after psql changed it's execution plan
Date: Mon, 23 Mar 2009 10:26:38 -0400
Message-ID: <8646.1237818398@sss.pgh.pa.us> (raw)
In-Reply-To: <8ae589230903230652n294f456dn6e3ec7a39bb4c0aa@mail.gmail.com>
References: <8ae589230903230652n294f456dn6e3ec7a39bb4c0aa@mail.gmail.com>

Romuald Brunet <romuald.brunet@gmail.com> writes:
> After some investigation, we found out that the PostgreSQL server
> (8.1) changed the execution plan (I'm assuming because the number of
> rows increased).

The problem seems to be that the estimate for the number of rows fetched
from dc_post changed drastically --- it was in the right ballpark, and
now it's off by a factor of 30.  Why is that?  Maybe you had had a
special statistics target setting, and it got dropped?

> The statistics are at the default value everywhere (10)

Almost certainly not enough.

			regards, tom lane




view thread (3+ messages)

Message-ID: <8646.1237818398@sss.pgh.pa.us>
Permalink:  ../8646.1237818398@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8646.1237818398@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, romuald.brunet@gmail.com
  Subject: Re: Slower query after psql changed it's execution plan
  In-Reply-To: <8646.1237818398@sss.pgh.pa.us>

* 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