Verify your knowledge
- What is the aim of the
pg_hba.conf
file?The
pg_hba.conf
file configures Host-Based-Access (HBA), a set of rules that define how a specific role (either a user or a group) can establish a connection to a specific database from a specific host or source, via a defined protocol. See the Managing incoming connections at the role level section for more details.
- How can you inspect the currently loaded HBA rules?
The special catalog
pg_hba_file_rules
provides details about loaded rules. See the Inspecting pg_hba.conf rules section for more details.
- Does the order of rules within
pg_hba.conf
matter?Yes, the rules are evaluated from top to bottom, and the first matching rule causes the end of the evaluation. See the Order of rules in pg_hba.conf section for more details.
- Where can you find information about roles?
The special catalogs
pg_roles
andpg_authid
provide information about roles....