#StackBounty: #bash #postgresql Enable PostgreSQL password login in pg_hba.conf grammatically

Bounty: 50

I’m using a library that only supports password authenticated login to psql. So solve this I’ve edited the pg_hba.conf file as per the doc.

I have a scripted install of my app and psql, and would like to enable local password login problematically from this bash script. Is there a more clever way than using sed or something similar? It sounds a bit “hackish” to alter the config and restarting the service.

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.