Re: Restrict allowed database names?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Restrict allowed database names?
Дата
Msg-id 24819.1269194553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Restrict allowed database names?  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-general
"Daniel Verite" <daniel@manitou-mail.org> writes:
>     Sergey Konoplev wrote:
>> What about PL/pgSQL wrapper function for CREATE DATABASE with database
>> name check and SECURITY DEFINER option.

> Not possible because CREATE DATABASE can't be executed within a function (nor
> within a transaction).

Note that the reasons why that's true are equally good reasons to not
allow triggers or any other user-added operations for CREATE DATABASE.

            regards, tom lane

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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Restrict allowed database names?
Следующее
От: John Shott
Дата:
Сообщение: Problems with "CREATE CAST"