* Fix UNIX socket connection to server
target_session_attrs prevented usage usage of UNIX socket because
in some cases we need to pick any connection host. UNIX socket does
not posess one, so the code was SegFaulting.
Add HBA config file support, add hba reload logic.
Currently supported:
local/host/hostssl/hostnossl
IPv4/IPv6 address ranges
rules reload on receiving SIGHUP
simple tests
What to improve:
default db/user
@<file> support in db/user fields
? set auth method for each hba rule
? replace rw_lock with coroutine synchronization
? make parser kind of configurable
Authored-by: Alexander Belev <belyov97@gmail.com>
Co-authored-by: Dmitry Vasiliev <dmitrivasilyev@ozon.ru>