From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig James <craig_james@emolecules.com>
Cc: PGSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Is ANALYZE transactional?
Date: Tue, 06 Nov 2007 00:30:34 -0500
Message-ID: <8739.1194327034@sss.pgh.pa.us> (raw)
In-Reply-To: <472FF7C5.2060402@emolecules.com>
References: <1d219a6f0711051043x569b7f51r4cee3353e6ea9f10@mail.gmail.com>
<472F781F.6080200@enterprisedb.com>
<472FF7C5.2060402@emolecules.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, craig_james@emolecules.com
Subject: Re: Is ANALYZE transactional?
In-Reply-To: <8739.1194327034@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox