Re: increasing query time after analyze - Mailing list pgsql-performance

From Claudio Freire
Subject Re: increasing query time after analyze
Date
Msg-id CAGTBQpYV2RY64L5OzZO2Dxp9ds3Mr1qxQm+wVz-64Uu=jOVd=A@mail.gmail.com
Whole thread Raw
In response to increasing query time after analyze  ("Katharina Koobs" <katharina.koobs@uni-konstanz.de>)
List pgsql-performance
On Wed, Feb 5, 2014 at 8:50 AM, Katharina Koobs
<katharina.koobs@uni-konstanz.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.


pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Postgres Query Plan Live Lock
Next
From: bricklen
Date:
Subject: Re: Postgres Query Plan Live Lock