[pgpool-committers: 4285] pgpool: [New feature] Allow specifying the hostnames in pool_hba

Muhammad Usama m.usama at gmail.com
Wed Sep 20 18:40:13 JST 2017


[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

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3cc5235a4c9ba8b4193308b95a7f21ba80d10a83

Modified Files
--------------
src/auth/pool_auth.c                          |    3 +-
src/auth/pool_hba.c                           | 1769 +++++++++++++++++--------
src/include/auth/pool_hba.h                   |   85 ++
src/include/pool.h                            |   16 +-
src/include/pool_type.h                       |   16 -
src/include/utils/pool_ip.h                   |    9 +-
src/main/health_check.c                       |    1 +
src/main/main.c                               |    1 +
src/main/pgpool_main.c                        |    1 +
src/protocol/child.c                          |    2 +
src/protocol/pool_process_query.c             |    1 +
src/streaming_replication/pool_worker_child.c |    1 +
src/utils/pool_ip.c                           |  113 +-
13 files changed, 1389 insertions(+), 629 deletions(-)



More information about the pgpool-committers mailing list