Re: [ADMIN] Vacuum error on database postgres - Mailing list pgsql-hackers

From Markus Schaber
Subject Re: [ADMIN] Vacuum error on database postgres
Date
Msg-id 450AA02C.60000@logix-tt.com
Whole thread Raw
In response to Re: [ADMIN] Vacuum error on database postgres  (Andrew - Supernews <andrew+nonews@supernews.com>)
List pgsql-hackers
Hi, Andrew,

Andrew - Supernews wrote:

>> Is there any reason to allow ANALYZE run insinde a transaction at all?
>
> Absolutely. In a large transaction that radically changes the content of
> the database, it is often necessary to analyze in order to avoid getting
> extremely bad query plans for later commands in the transaction.

OK, I see.

But this leads to the danger that, should the transaction abort
afterwards, we're left with borked stats, or are those rolled back
accordingly?

Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org


pgsql-hackers by date:

Previous
From: Andrew - Supernews
Date:
Subject: Re: [ADMIN] Vacuum error on database postgres
Next
From: Gregory Stark
Date:
Subject: Re: [ADMIN] Vacuum error on database postgres