Re: BUG #5367: TEMP TABLES with ON COMMIT DELETE ROWS and different pg_stat features

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5367: TEMP TABLES with ON COMMIT DELETE ROWS and different pg_stat features
Дата
Msg-id 12530.1268152564@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5367: TEMP TABLES with ON COMMIT DELETE ROWS and different pg_stat features  ("Boguk Maxim" <Maxim.Boguk@gmail.com>)
Список pgsql-bugs
"Boguk Maxim" <Maxim.Boguk@gmail.com> writes:
> When transaction which used TEMP table with ON COMMIT DELETE ROWS commit or
> rollback pg_stats and pg_stat_all_tables about that temporary table doesn't
> reset.

> It's no problem with common applications but with pgbouncer + transaction
> pooling mode postgresql backends staying alive long time and incremental
> errors in statistic about temporary tables leading to choose insane query
> plans and bad performance in general.

With a temp table it's pretty much on your application's head to do
ANALYZE at appropriate times.  There's no way for autovac to do it for
you.  I don't see any point in creating strange corner-case behaviors
in the stats code given the fundamental need for manual ANALYZEs.

            regards, tom lane

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

Предыдущее
От: Andrea Suisani
Дата:
Сообщение: Re: duplicate key violates unique contraint on pg_type_typname_nsp_index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in triggers