pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Question on failure during cluster operation
Date: Thu, 22 Jun 2006 13:05:01 -0400
Message-ID: <1189.1150995901@sss.pgh.pa.us> (raw)
In-Reply-To: <1d219a6f0606220652o18c4be0bp99c443d21f609314@mail.gmail.com>
References: <1d219a6f0606220652o18c4be0bp99c443d21f609314@mail.gmail.com>

"Chris Hoover" <revoohc@gmail.com> writes:
> I am wanting to run a cluster on the main table in all of our 200+
> databases.  However, my manager wants to know what would happen if we suffer
> a major failure while the cluster is running.

Nothing.  CLUSTER is transaction-safe (at least since PG 7.1 or so)
because it writes new separate versions of the files that don't become
the "real thing" until commit.  Downside of this of course is you need
enough free disk space for 2 copies of the table and indexes.

If you did have a crash while running CLUSTER, there might be
unreferenced temporary files left laying around, which as things
currently stand would require manual cleanup if you wanted the disk
space back.  There wouldn't be any database corruption though.

			regards, tom lane



view thread (2+ messages)

Message-ID: <1189.1150995901@sss.pgh.pa.us>
Permalink:  ../1189.1150995901@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1189.1150995901@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, revoohc@gmail.com
  Subject: Re: Question on failure during cluster operation
  In-Reply-To: <1189.1150995901@sss.pgh.pa.us>
  References: <1d219a6f0606220652o18c4be0bp99c443d21f609314@mail.gmail.com> <1189.1150995901@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