Re: increasing query time after analyze

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: Katharina Koobs <katharina(dot)koobs(at)uni-konstanz(dot)de>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: increasing query time after analyze
Date: 2014-02-05 15:28:39
Message-ID: CAGTBQpYV2RY64L5OzZO2Dxp9ds3Mr1qxQm+wVz-64Uu=jOVd=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Feb 5, 2014 at 8:50 AM, Katharina Koobs
<katharina(dot)koobs(at)uni-konstanz(dot)de> wrote:
> Hi,
>
>
>
> We have a PostgreSQL DB, version 9.3 on a Suse Linux system.
>
> We ran the update from postgresql 8.4 to 9.3.
>
> After importing the database the query time of one sql query is about 30
> sec.
>
> After ANALYZE the DB the query time of this sql query is about 45 minutes.
>
> We can see that after analyzing the indexes will no longer be used.
>
>
>
> Has anyone an idea why ANALYZE cause this problem?

If you just restored a dump, you should do a VACUUM ANALYZE.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message bricklen 2014-02-05 16:39:45 Re: Postgres Query Plan Live Lock
Previous Message Jeff Janes 2014-02-05 14:52:20 Postgres Query Plan Live Lock