Re: Restrict allowed database names? - Mailing list pgsql-general

From Daniel Verite
Subject Re: Restrict allowed database names?
Date
Msg-id 70eb8bcb-37fd-4efe-a12f-f59d701284ba@mm
Whole thread Raw
In response to Re: Restrict allowed database names?  (Sergey Konoplev <gray.ru@gmail.com>)
Responses Re: Restrict allowed database names?
Re: Restrict allowed database names?
List pgsql-general
    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).

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: Restrict allowed database names?
Next
From: Sergey Konoplev
Date:
Subject: Re: Restrict allowed database names?