Re: Is ANALYZE transactional?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is ANALYZE transactional?
Дата
Msg-id 8739.1194327034@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is ANALYZE transactional?  (Craig James <craig_james@emolecules.com>)
Список pgsql-performance
Craig James <craig_james@emolecules.com> writes:
> If I do:
>   begin;
>   update some_table set foo = newvalue where a_bunch_of_rows_are_changed;
>   analyze some_table;
>   rollback;

> does it roll back the statistics?  (I think the answer is yes, but I need to be sure.)

Yes --- ANALYZE doesn't do anything magic, just a plain UPDATE of those
rows.  (You could have easily tested this for yourself...)

            regards, tom lane

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

Предыдущее
От: Craig James
Дата:
Сообщение: Is ANALYZE transactional?
Следующее
От: Tore Halset
Дата:
Сообщение: dell versus hp