Question

How to create account on PostgreSQL Database with fully permissions like "posgres" account?

Posted October 11, 2019 775 views
DigitalOcean Managed PostgreSQL Database

Hello,

I need create the User Privileges in PostgreSQL Databases like account “postgres” with fully user permissions (Superuser, Create role, Create DB, Replicate, Bypass RLS). Because, the system can’t accept create account “postgres”.
Please, help me how to do that.

Regards and thanks,

Tien

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

I don’t believe that you could create a user with the same privileges as in order to do that you need super privileges. Is there a particular reason why you don’t just use the default one?

I install the Fusionpbx with external PostgreSQL (in this case external db using Cloud SQL of DigitalOcean), please see in line numbers 81,82 in file below ( will adding options - h z.z.z.z when execute):

https://github.com/fusionpbx/fusionpbx-install.sh/blob/master/debian/resources/postgresql.sh

It require superuser role. I don’t have knowledge about PostgreSQL administration, do you have any ideas for resolve this problem?
Thanks,

Submit an Answer