Skip site navigation (1) Skip section navigation (2)

Re: Is ANALYZE transactional?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Craig James <craig_james(at)emolecules(dot)com>
Cc: PGSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Is ANALYZE transactional?
Date: 2007-11-06 05:30:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Craig James <craig_james(at)emolecules(dot)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

In response to

pgsql-performance by date

Next:From: Tore HalsetDate: 2007-11-06 10:12:23
Subject: dell versus hp
Previous:From: Craig JamesDate: 2007-11-06 05:12:37
Subject: Is ANALYZE transactional?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group