Open devsarfo opened 3 weeks ago
Shouldn't postgres user own all the databases? and the other users just have access? kinda similar to root access on mysql.
The staging user is required to own staging for the Laravel migrations to work. When the owner is set to staging, postgres user still has access. The PostgreSQL superuser always has access to everything within the database, regardless of ownership. This is why even after setting the owner to "staging," the postgres user still has access.
I created a new db and added the user, as you can see below, it gives you the error.
I face this issue to
Describe the bug When you create a new database in Postgres 16 and assign a user to it, it uses postgres as the owner instead of the one set.
To Reproduce Steps to reproduce the behaviour:
sudo -i -u postgres
psql
\l
and observe the owner of the database you createdExpected behaviour The Owner of the DB should be the one set in Vito and not posgres
Screenshots Vito
psql
Additional context