Add the client host IP address and port to application_name.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 8 Apr 2014 15:28:43 +0000 (11:28 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 8 Apr 2014 15:28:43 +0000 (11:28 -0400)
commitac9842870517f8c4e4a915fe6b3ccadbcdbdea03
treeefb5cbc793c57e106880e08f35e8676cb4d1b070
parent25abee5f446181e5b011bc8cbdd455f1775c177e
Add the client host IP address and port to application_name.

This is enabled by a config parameter which defaults to 'on'

If the client subsequently overwrites the application_name parameter
during the session then this won't be sticky, but it does let you see
(and log) where queries are actually coming from instead of just seeing
pgbouncer as the source address and port.
doc/config.txt
include/bouncer.h
src/client.c
src/main.c