Re: check for missing tablespaces?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: check for missing tablespaces?
Дата
Msg-id 20090531172346.GZ8123@tamriel.snowman.net
обсуждение исходный текст
Ответ на check for missing tablespaces?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
* Andrew Dunstan (andrew@dunslane.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.
Thanks,
    Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: check for missing tablespaces?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: check for missing tablespaces?