Skip site navigation (1) Skip section navigation (2)

Re: check for missing tablespaces?

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: check for missing tablespaces?
Date: 2009-05-31 17:23:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
* Andrew Dunstan (andrew(at)dunslane(dot)net) wrote:
> I am in the middle of helping a customer recover from a situation where  
> a tablespace was missing when a machine was rebooted and postgres  
> restarted, and I'm wondering if we should not have some sort of check  
> for this on startup. Maybe we could check for the existence of the  
> PG_VERSION file or something like that? Of course, that wouldn't help if  
> the tablespace were subsequently lost, but it doesn't seem like a  
> terribly expensive or unreasonable sanity check for startup.

I agree entirely with doing this.  Now that we've got tablespaces and
our users are using them to split things on to seperate partitions which
could be accessed in different ways (eg: a tablespace on local storage
and one on a SAN) it makes alot of sense to make sure everything is in
order before allowing the system to completely come up.  I'd much rather
PG not start when the SAN mappings aren't in place.



In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2009-05-31 17:28:01
Subject: Re: check for missing tablespaces?
Previous:From: Andrew DunstanDate: 2009-05-31 17:09:19
Subject: check for missing tablespaces?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group