Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Below is an example of a PostgreSQL host-based authentication configuration inĀ $PGDATA/pg_hba.conf.

tip
Rw ui textbox macro
type
Info

Example - PostgreSQL HBA Configuration File

Code Block
# 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

...