Below is an example of a PostgreSQL host-based authentication configuration inĀ $PGDATA/pg_hba.conf.
Info
title
Example - PostgreSQL HBA Configuration File
Code Block
theme
Eclipse
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 ident