bugfix: fixed compilation error with nginx 1.7.5+ because nginx 1.7.5+ changes the API in the events subsystem.
feature: added support for IPv6 addresses in the "postgres_server" directive. thanks Ingo Struck for the original patch in #29.