select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM VIEWS

pg_hba_file_rules

Read PG 18 manual ↗

The view pg_hba_file_rules provides a summary of the contents of the client authentication configuration file, pg_hba.conf.

Kind
System views
Columns in this snapshot
11
Definition source
English manual

Columns 11

ColumnTypeDescription / reference
rule_numberint4Number of this rule, if valid, otherwise NULL. This indicates the order in which each rule is considered until a match is found during authentication.
file_nametextName of the file containing this rule
line_numberint4Line number of this rule in file_name
typetextType of connection
databasetext[]List of database name(s) to which this rule applies
user_nametext[]List of user and group name(s) to which this rule applies
addresstextHost name or IP address, or one of all, samehost, or samenet, or null for local connections
netmasktextIP address mask, or null if not applicable
auth_methodtextAuthentication method
optionstext[]Options specified for authentication method, if any
errortextIf not null, an error message indicating why this line could not be processed
Column history across versions
Version history 2
  1. PG 15 → 16changed
  2. PG 9.6 → 10added

Definition snapshot: english-manuals:be5417acf295e6b483b2c80f1a1… · English manual source