Search Postgresql Archives

Re: Restrict user to create only one db with a specific name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, March 6, 2020, David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
On Fri, Mar 6, 2020 at 4:28 PM Tiffany Thang <tiffanythang@xxxxxxxxx> wrote:
Hi,
Is there a way in PostgreSQL 12 to restrict user to creating a database with a specific database name?

 

You could just have them log into an admin database and run a function that creates the database for them using function owner privileges then you can add whatever special logic you want to that function.

Or not...the transaction involved with executing a function causes create database to not work...

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux