Create a non-owner administrator in rds postgresql

Поиск
Список
Период
Сортировка
От Antonio Gomez
Тема Create a non-owner administrator in rds postgresql
Дата
Msg-id BL0PR0102MB33625116C4CF5162F4037410D6820@BL0PR0102MB3362.prod.exchangelabs.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: vinod kale
Дата:
Сообщение: block corruption message in error logs.
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: block corruption message in error logs.