Re: Auto create (top level) directory for create tablespace

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Auto create (top level) directory for create tablespace
Дата
Msg-id 18897.1197775682@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Auto create (top level) directory for create tablespace  (Mark Kirkwood <markir@paradise.net.nz>)
Ответы Re: Auto create (top level) directory for create tablespace  (Mark Kirkwood <markir@paradise.net.nz>)
Re: Auto create (top level) directory for create tablespace  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Mark Kirkwood <markir@paradise.net.nz> writes:
> I thought it made sense for CREATE TABLESPACE to attempt to create the
> top level location directory -

I thought we had deliberately made it not do that.  Auto-recreate during
replay sounds even worse.  The problem is that a tablespace would
normally be under a mount point, and auto-create has zero chance of
getting such a path right.

Ignoring this point is actually a fine recipe for destroying your data;
see Joe Conway's report a couple years back about getting burnt by a
soft NFS mount.  If the DB directory is not there, auto-creating it is
a horrible idea.

            regards, tom lane

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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Auto create (top level) directory for create tablespace
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Auto create (top level) directory for create tablespace