-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
You have hardcoded the path of pg_hba.conf to /var/lib/pgsql/data/pg_hba.conf, but it can be in /var/lib/pgsql/data/*/pg_hba.conf where * is psql version (like 10). From here I’ve got the following command which does not ask for postgres password with the default config.
pg_hba_path=$(sudo -u postgres psql -t -P format=unaligned -c 'show hba_file;')Metadata
Metadata
Assignees
Labels
No labels