Users & Roles
A Postgres cluster is configured with three users when created:
postgres
- a role with superuser and login privileges that was created for you along with the cluster. Since thepostgres
role has superuser rights, it's recommended that you only use it for admin tasks and create new users with access restricted to the minimum necessary for applicationsflypgadmin
- this role is used internally by Fly.io to configure and query the Postgres clusterrepluser
- this is the user replica servers use for replication from the leader
You can view a list of users using flyctl
:
fly postgres users list -a pg-test
Running flyadmin user-list
USERNAME SUPERUSER DATABASES
flypgadmin true postgres
postgres true postgres
repluser false postgres