Re: [ADMIN] How to drop stats on table

Поиск
Список
Период
Сортировка
От Sridhar N Bamandlapally
Тема Re: [ADMIN] How to drop stats on table
Дата
Msg-id CAGuFTBXZr+Ab3Qnw9M-MZu=k8qh_p23UqhrnZW8vVYZmhC6bLw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [ADMIN] How to drop stats on table  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Ответы Re: [ADMIN] How to drop stats on table  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [ADMIN] How to drop stats on table  (Alexander Shereshevsky <shereshevsky@gmail.com>)
Re: [ADMIN] How to drop stats on table  (Jeff Janes <jeff.janes@gmail.com>)
Re: [ADMIN] How to drop stats on table  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
the actual issue is, when 

1. temp table <say tmp1>is created with rows
2. stats/analyze on table (tmp1)
3. table dropped (tmp1)

but in stats related catalog tables a blot is created

In this scenario, thousands of temp tables created per day, blots are increasing and stats related tables are growing to 10's of GB

however, we schedule vacuum on catalog tables to control size

the worry is, catalog tables also undergo MVCC concept

I think when table is dropped, should have option to remove or reuse related blot-space on catalog tables

-Sridhar
 



On Fri, Nov 20, 2015 at 5:54 PM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
Sridhar N Bamandlapally wrote:
> is there any feature available in postgres to drop stats on table?

What about

DELETE FROM pg_catalog.pg_statistic WHERE starelid = <table oid>

Yours,
Laurenz Albe

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: postgres zeroization of dead tuples ? i.e scrubbing dead tuples with sensitive data.
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [ADMIN] How to drop stats on table