I am trying to import a cloud sql postgres db instance to a newer instance with the same users created but i am getting this error:
.....ALTER DEFAULT PRIVILEGES ALTER DEFAULT PRIVILEGES stderr: ERROR: must be member of role "readonly"
Btw readonly is a user which use to connect our read only apps, but the problem is that to my expectation I should be able to export an instance and import it without any problem what am I missing here.
My exact steps
- Export DB from cloud sql interface
- Create a new db with a user named "proxyuser" (old convention in the company)
- Import through the cloud sql, and select the user to "proxyuser"
After this the import fails at 2 hour mark with the above error message.
Side note: The import is from a replica DB in the another instance (i dont think so it matters, but let me know if it does)