From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Patrice Beliveau <pbeliveau(at)avior(dot)ca> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Difference in query plan |
Date: | 2008-11-14 17:14:17 |
Message-ID: | 491DB1E9.6030500@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Patrice Beliveau wrote:
> Thanks,
>
> I'm already doing a vacuum full every night on all database, but the
> REINDEX fix it and now it's working fine
Are you sure it was the REINDEX? The plan was using a sequential scan.
> But this raise a question
>
> 1) This table is cleared every night and recomputed, does this mean that
> I should REINDEX every night also
Looks like you should. Or drop the indexes, load the data, re-create the
indexes, that can be quicker.
> 2) Why this thing didn't happen in the other schema
Have you re-loaded schema1 more often? It might even be the particular
order that rows are loaded - a btree can become "unbalanced" sometimes.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Віталій Тимчишин | 2008-11-15 13:55:38 | Re: PostgreSQL OR performance |
Previous Message | Patrice Beliveau | 2008-11-14 17:07:45 | Re: Difference in query plan |