Postgresql dumps in Docker: tips for using it in docker-entrypoint-initdb.d, a way of adding additional initialization and data to containers.
If we create a PostgreSQL dump by default it does with owner and privileges. And this is usually fine, except if we want it for feeding our local environments. In this case (I hope), we use different users and passwords. So it would be nice if we can do the dump without that kind of permissions (without ownership and privileges).