Granting rights on postgresql database to another user

Posted by Austin on Server Fault See other posts from Server Fault or by Austin
Published on 2012-11-30T09:43:26Z Indexed on 2012/11/30 11:08 UTC
Read the original article Hit count: 238

Filed under:
|

I'm trying to set up a system with a PostgreSQL database per user, with a PHP-FPM resource pool for an associated account. I need to grant all privileges on the database to the other user, but it seems that it's only possible to do this for tables.

I've tried grant all privileges on database username to username_shadow but this gives only limited privileges.

I've upgraded to PGSQL 9.2, which has the ability to grant privileges on schema, but I can't get a useful result. How do I simply make another user have all the privileges of the first on the same database?

© Server Fault or respective owner

Related posts about postgresql

Related posts about privileges