cel_pgsql, cdr_pgsql, res_config_pgsql: Add PostgreSQL application_name support
authorMatthew Jordan <mjordan@digium.com>
Wed, 16 Jul 2014 13:55:36 +0000 (13:55 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 16 Jul 2014 13:55:36 +0000 (13:55 +0000)
commit03e9c598e5fe2274e0e171519c5ac52738c65b14
treee532af6b6244b867b0f1470bc7cee7790b758a42
parentfee789dddbe0fe5791d42773e2293b693624e961
cel_pgsql, cdr_pgsql, res_config_pgsql: Add PostgreSQL application_name support

This patch adds support for the PostgreSQL application_name connection setting.
When the appropriate PostgreSQL module's configuration is set with an
application name, the name will be passed to PostgreSQL on connection and
displayed in the database's pg_stat_activity view, as well as in CSV logs. This
aids in managing which applications/servers are connected to a PostgreSQL
database, as well as tracing the activity of those connections.

Review: https://reviewboard.asterisk.org/r/3591

ASTERISK-23737 #close
Reported by: Gergely Domodi
patches:
  pgsql_application_name.patch uploaded by Gergely Domodi (License 6610)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
cdr/cdr_pgsql.c
cel/cel_pgsql.c
configs/cdr_pgsql.conf.sample
configs/cel_pgsql.conf.sample
configs/res_pgsql.conf.sample
res/res_config_pgsql.c