[New feature] Allow specifying the hostnames in pool_hba
authorMuhammad Usama <m.usama@gmail.com>
Wed, 20 Sep 2017 09:34:49 +0000 (14:34 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Wed, 20 Sep 2017 09:34:49 +0000 (14:34 +0500)
commit3cc5235a4c9ba8b4193308b95a7f21ba80d10a83
tree161a29e3ed74205961f8bcc578f72fbb2f59972c
parent6be053455282f7e70916e73938cffea63b118b8d
[New feature] Allow specifying the hostnames in pool_hba

The commit adds the support of hostnames to be used in the address field of
pool_hba records, previously only CIDR address was supported.

Along with allowing the hostnames in address field of the HBA record the commit
also made the following enhancements in the area.

-- pool_hba records are now completely parsed at the loading time and we now
   keep the structured data of records instead of raw record lines,  This
   saves the parsing at every new connection time and however little it may
   be but its a performance enhancement.

-- Enhanced parsing now gives the better descriptive error/log messages.

-- Better handling of auth-options field
13 files changed:
src/auth/pool_auth.c
src/auth/pool_hba.c
src/include/auth/pool_hba.h [new file with mode: 0644]
src/include/pool.h
src/include/pool_type.h
src/include/utils/pool_ip.h
src/main/health_check.c
src/main/main.c
src/main/pgpool_main.c
src/protocol/child.c
src/protocol/pool_process_query.c
src/streaming_replication/pool_worker_child.c
src/utils/pool_ip.c