

Fields can contain white space if the field value is double-quoted.

(Backslashes are not special except at the end of a line.) A record is made up of a number of fields which are separated by spaces and/or tabs. A record can be continued onto the next line by ending the line with a backslash.

Blank lines are ignored, as is any text after the # comment character. The general format of the pg_hba.conf file is a set of records, one per line. It is possible to place the authentication configuration file elsewhere, however see the hba_file configuration parameter. ( HBA stands for host-based authentication.) A default pg_hba.conf file is installed when the data directory is initialized by initdb. Client authentication is controlled by a configuration file, which traditionally is named pg_hba.conf and is stored in the database cluster's data directory.
