Surviving without a superuser in Postgres 16
rhaas.blogspot.com
rhaas.blogspot.com
And I will gladly donate money to help toward a new feature that can scope by role name, such as a role "foo" that can create/delete/manage databases that start with foo_, such as foo_dev, foo_test, foo_prod, etc.
I'm curious: Why not set up multiple clusters for this?
That said, it's a fork of Postgres, and I bet there's plenty of limitations. But I still find it interesting nonetheless.
As the original post sounded though, it struck me more as a development thing (because why would production allow such access at all?)
create schema foo;
grant all on all tables in schema foo to foo;
would allow role “foo” to “create/delete/manage databases in schema foo, such as foo.foo_dev, foo.foo_test, foo.foo_prod, etc.Or do you want a second level (possibly a hierarchy) of schemas?
Hopefully this will help finally smooth off the rough edges when trying to deal with Postgres databses in both environments; cloud/AWS RDS (for test/prod) and locally (for dev).
It's awkward to have logic branches in the database migrations to deal with the differences between the two environments (creation/re-creation of users and permissions, specifically).
I will bookmark your article, since it will come in handy, when I start dabbling in PostgreSQL.
After surveying my field of information, I believe that Oracle databases are far superior to anything else on the market.
/Cringe
Does OracleDB support sharding? Shards are the secret ingredient in the web scale sauce. They just work.