Re: Restrict allowed database names?

Daniel Verite <daniel@manitou-mail.org>

From: "Daniel Verite" <daniel@manitou-mail.org>
To: pgsql-general@postgresql.org
Date: 2010-03-21T17:43:16Z
Lists: 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