3 ms·
> Perhaps this is outdated already but we have to resort to here-documents and other shenanigans to get the initial db and users created. Is there a better way
by JimDabell 11y ago
> Perhaps this is outdated already but we have to resort to here-documents and other shenanigans to get the initial db and users created. Is there a better way to do this?
Yes, and it works for most server software, not just PostgreSQL. Use a configuration management system, like Salt, Puppet, or Chef.
- wwweston 11y ago"Now you have two problems."
- mixmastamyk 11y agoThat these tools exist doesn't mean pg couldn't be streamlined. Also, we're moving to containers and may drop some of the extra tools.