Malcolm Beattie <mbeattie@sable.ox.ac.uk> writes:
> It looks like the whole pg_hba thing isn't really designed to be
> asynchronous or event-driven.
Nope, the module would need a pretty thorough rewrite ...
> A cheap and cheerful fix would be to
> replace the blocking connect/send/recv in ident() in hba.c with
> foo_timeout ones (for foo one of connect/send/recv).
That was what I was thinking too, unless we find a volunteer to do
the bigger job. I don't particularly care to spend that much time
on this problem myself.
regards, tom lane