pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

pgroll init --role app_admin ignores --role

Open andriusjurkus opened this issue 1 month ago • 0 comments

Title says it all. There is no error nothing.

--role: The Postgres role to use for all pgroll DDL operations (default: "", which doesn't set any role).

Or I m misunderstanding something and this is intended for some reason?

pgroll init --role app_admin 
 SUCCESS  Initialization complete
postgres=# \dns
      List of schemas
  Name  |       Owner       
--------+-------------------
 pgroll | postgres
postgres=# \du
                             List of roles
 Role name |                         Attributes                         
-----------+------------------------------------------------------------
 app_admin | Superuser, Cannot login
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS

andriusjurkus avatar Nov 10 '25 13:11 andriusjurkus