Re: Sensitivity to drive failure? - Mailing list pgsql-general

From Tom Lane
Subject Re: Sensitivity to drive failure?
Date
Msg-id 22383.1443803454@sss.pgh.pa.us
Whole thread Raw
In response to Sensitivity to drive failure?  (Israel Brewster <israel@ravnalaska.net>)
Responses Re: Sensitivity to drive failure?  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
List pgsql-general
Israel Brewster <israel@ravnalaska.net> writes:
> How sensitive is PostgreSQL to a failure that causes it to loose a single tablespace, while the rest of the database
clusteris still accessible? Will it continue running, allowing access to databases that aren't in the missing
tablespace,or will it crash (or similar)? 

If the tablespace just disappears mid-run, things will not be good; any
dirty buffers for those tables that are hanging around in shared buffers
cannot be written out, so checkpoints cannot complete, so WAL will
accumulate indefinitely (meaning that crash recovery time will grow,
among other bad effects).  It's not going to be any better than losing
some random subset of files that aren't separated by tablespace.

I don't recall the details for sure, but I think you could manually
recover from such a scenario by dropping all the affected tables.  But
the tablespace mechanism, per se, doesn't help you in this.  It's not
designed to be a robustness aid.

            regards, tom lane


pgsql-general by date:

Previous
From: Israel Brewster
Date:
Subject: Sensitivity to drive failure?
Next
From: Olivier Dony
Date:
Subject: Re: Serialization errors despite KEY SHARE/NO KEY UPDATE