From: Rafael Martinez <r.m.guerrero@usit.uio.no>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Need to run CLUSTER to keep performance
Date: Tue, 13 Nov 2007 10:03:19 +0100
Message-ID: <47396857.1050801@usit.uio.no> (raw)
In-Reply-To: <47396527.5090801@usit.uio.no>
References: <4732E6B4.1030907@usit.uio.no>
<4732EF07.3060807@enterprisedb.com>
<47332200.9050705@usit.uio.no>
<24775.1194535980@sss.pgh.pa.us>
<4738735B.6030408@usit.uio.no>
<47387FED.8090408@enterprisedb.com>
<47396527.5090801@usit.uio.no>
Rafael Martinez wrote:
> Heikki Linnakangas wrote:
>
>> In 8.1, CLUSTER will remove those tuples anyway, but it's actually not
>> correct.
>
> With other words, .... we have to be very carefull to not run CLUSTER on
> a table been modified inside a transaction if we do not want to lose
> data? ...
>
> Does this mean that if we run a transaction which update/delete many
> rows, run cluster before the transaction is finnish, and then rollback
> the transaction after cluster has been executed, all dead rows
> updated/deleted by the transaction can not be rollbacked back because
> they are not there anymore?
>
Stupid question, I could have checked this myself. CLUSTER will wait to
be executed until the transaction is finish. I have just checked this.
--
Rafael Martinez, <r.m.guerrero@usit.uio.no>
Center for Information Technology Services
University of Oslo, Norway
PGP Public Key: http://folk.uio.no/rafael/
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: r.m.guerrero@usit.uio.no, heikki@enterprisedb.com
Subject: Re: Need to run CLUSTER to keep performance
In-Reply-To: <47396857.1050801@usit.uio.no>
* 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