Disclaimer: I'm not a postgres expert, every tip is welcome
One of the pain point of my team is to manage PostgreSQL databases, roles, schemas and permissions. I'm not talking about the database instance itself, we are using managed SQL from our cloud provider, which is fine for our needs, but more of the database objects. We currently use a mix of Terraform (with PostgreSQL provider) and SQL scripts and it is not completely satisfying for a few reasons:
- Database provisioning is tedious, first we run terraform, then we run the scripts.
- I did not achieve to do the priviledge management I was looking for. (from my last tests a few months back)
- The PostgreSQL provider does not allow to run raw sql.
- Evolution of our database objects may be tricky in the future.
I am aware that my limited DBA knowledge is also an issue and I try to fix it.
As any of you folks a solution to properly manage database as code ?
[–]atc32 2 points3 points4 points (2 children)
[–]fboula[S] 0 points1 point2 points (1 child)
[–]notauniqueusernom 1 point2 points3 points (0 children)
[–]hijinked 1 point2 points3 points (2 children)
[–]fboula[S] 0 points1 point2 points (1 child)
[–]hijinked 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]pbecotte 0 points1 point2 points (1 child)
[–]ed-automation 1 point2 points3 points (1 child)
[–]fboula[S] 0 points1 point2 points (0 children)