Create a non-owner administrator in rds postgresql - Mailing list pgsql-admin

From Antonio Gomez
Subject Create a non-owner administrator in rds postgresql
Date
Msg-id BL0PR0102MB33625116C4CF5162F4037410D6820@BL0PR0102MB3362.prod.exchangelabs.com
Whole thread Raw
List pgsql-admin

 

What we're looking to do is to create a new master user in Postgresql in AWS RDS that does not take ownership of existing objects but has all the rights to manage existing objects in all databases.

We know that we can grant a new user the rights of rds_superuser.

However, when we create a connection with this new user we try to query a database, we get a permission denied error. So just granting superuser rights doesn't do much, seemingly.

Since the ultimate goal is to be able to CRUD in ALL databases in the cluster, including managing foreign servers and user mappings, etc, (without taking ownership of existing objects), would this mean that we necessarily have to loop over all the databases and schemas and functions, etc... to grant permissions to this new user for all those things one by one?

Or is there a quicker way?

Thanks

pgsql-admin by date:

Previous
From: vinod kale
Date:
Subject: block corruption message in error logs.
Next
From: Laurenz Albe
Date:
Subject: Re: block corruption message in error logs.