Re: Is ANALYZE transactional? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Is ANALYZE transactional?
Date
Msg-id 8739.1194327034@sss.pgh.pa.us
Whole thread Raw
In response to Is ANALYZE transactional?  (Craig James <craig_james@emolecules.com>)
List 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 by date:

Previous
From: Craig James
Date:
Subject: Is ANALYZE transactional?
Next
From: Tore Halset
Date:
Subject: dell versus hp