Score:0

How to create a copy of a user in AWS RDS PostgreSQL?

vn flag

I need to replace a AWS RDS PostgreSQL user without causing an outage during the switch, so I'm trying to duplicate it's permissions and can't seem to find information on how to do it correctly.

In regular PostgreSQL one could pg_dumpall -g and just change username in commands, but RDS won't allows access to pg_authid, making the command fail.

Granting role of the old user to new one like this GRANT postgres TO newuser; doesn't seem to inherit original roles and adding those roles manually still leaves out attributes, such as Create role or Create DB one might have.

Is there a better way to replicate user permissions than granting original users as a role, it's other roles and altering attributes afterwards as it just feels overly complicated.

Thank you.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.