Re: How to remove a table statistics ?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: How to remove a table statistics ?
Дата
Msg-id 4F283672.1060008@agliodbs.com
обсуждение исходный текст
Ответ на How to remove a table statistics ?  ("Marc Mamin" <M.Mamin@intershop.de>)
Ответы Re: How to remove a table statistics ?  ("Marc Mamin" <M.Mamin@intershop.de>)
Список pgsql-performance
On 1/31/12 3:50 AM, Marc Mamin wrote:
> Hello,
>
> I have a weird table, upon with the queries are much faster when no
> statics were collected.
>
> Is there a way to delete statistics information for a table ?
> I've tried ALTER.. set STATISTICS 0 and then run ANALYZE, but it seems
> that old statistics are kept this way.
> Can I delete entries directly in pg_statistic ?
> (Postgresql 9.1)

You can, but it won't do any good; autovaccum will replace them.

It would be better to fix the actual query plan issue.  If you can, post
the query plans with and without statistics (EXPLAIN ANALYZE, please) here.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Marc Mamin"
Дата:
Сообщение: How to remove a table statistics ?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: How to improve insert speed with index on text column