Re: create tablespace fails silently, or succeeds improperly

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: create tablespace fails silently, or succeeds improperly
Дата
Msg-id 20101211041721.GJ26232@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: create tablespace fails silently, or succeeds improperly  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: create tablespace fails silently, or succeeds improperly  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote:
> On Fri, Dec 10, 2010 at 10:33 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Anybody have a problem with adopting this behavior?
>
> Seems a bit surprising.

Yeahh..  I'm not really sure about mkdir -p type actions from a SQL
command.  Not entirely sure why but it doesn't feel 'right' to me.  I'd
rather have PG complain "that directory doesn't exist".  It's not a
terribly strong feeling though, more of a "that's kind of suprising",
since, as you point out, PG would have to have the necessary permissions
to create the directories, and I know that it probably wouldn't on
systems that I set up, but I don't really like relying on the FS
permissions to realize something like this was happening...

At the end of the day, I think you'll get people who will see a
permission denied and go "oh, I need to grant PG rights to mkdir in /,
sure, why not", even though that might mean creating a directory on a
small root FS which will then run out of space quickly...

Just my 2c.
Stephen

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

Предыдущее
От: Vaibhav Kaushal
Дата:
Сообщение: Re: Anyone for SSDs?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Anyone for SSDs?