Re: [HACKERS] createdb with alternate location

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] createdb with alternate location
Дата
Msg-id 25599.944979211@sss.pgh.pa.us
обсуждение исходный текст
Ответ на createdb with alternate location  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> [ CREATE DATABASE WITH LOCATION shouldn't depend on environment vars ]

I agree, this oughta be flushed.  Is the expansion routine used in any
other contexts where depending on an environment var *would* make sense?

> What really gets me, though, is how this sort of scheme is supposed to
> create security in the first place.

I doubt security was foremost in the mind of whoever did that.  Still,
the environment vars in question are those created by the dbadmin before
starting the postmaster; it's not like unprivileged users can affect
them.  So I'd say it's just a chance to shoot yourself in the foot,
not a question of exposing yourself to enemy fire...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: Mirroring a DB
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] pg_dump primary keys