PostgreSQL中的pg_hba.conf
环境:PG 13
-bash-4.2$ pwd
/var/lib/pgsql/13/data
-bash-4.2$ more pg_hba.conf
# 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 scram-sha-256
# IPv6 local connections:
host all all ::1/128