pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Question on failure during cluster operation
2+ messages / 2 participants
[nested] [flat]

* Question on failure during cluster operation
@ 2006-06-22 13:52 Chris Hoover <revoohc@gmail.com>
  2006-06-22 17:05 ` Re: Question on failure during cluster operation Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Chris Hoover @ 2006-06-22 13:52 UTC (permalink / raw)
  To: pgsql-admin

Question,

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.  If I am running a "cluster
chosen_index on main_table", and the server crashes,  would the database
come back up (assuming the crash did not corrupt the database drives), or
would I be looking at a restore and roll forward?

I am very confident in the cluster, and have seen it improve our
performance, but my boss is still a bit cautious after all the server issues
we had on our old servers and I don't know for sure the correct answer.  I
believe that the database would self recover like it does 99% of the time,
and we would be back up running in a few minutes, but I need to know for
sure.

So, what am I looking at if there is a major failure in the middle of a
cluster operation?

Thanks,

Chris

RH 4.0
PG 8.1.3

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Question on failure during cluster operation
  2006-06-22 13:52 Question on failure during cluster operation Chris Hoover <revoohc@gmail.com>
@ 2006-06-22 17:05 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2006-06-22 17:05 UTC (permalink / raw)
  To: Chris Hoover <revoohc@gmail.com>; +Cc: pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-06-22 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-22 13:52 Question on failure during cluster operation Chris Hoover <revoohc@gmail.com>
2006-06-22 17:05 ` Tom Lane <tgl@sss.pgh.pa.us>

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