]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1492793: Support Application Name Postgres Option
authorJason Boyer <jboyer@library.in.gov>
Sun, 6 Sep 2015 16:58:49 +0000 (12:58 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 2 Mar 2016 20:58:31 +0000 (15:58 -0500)
commitf9421938ec6be6a023fd72b75f052af9c48ae606
treefdecce581a4f06d5b2e34a19ece23efa0c73258d
parent524a3dc3713745ed22966446b97a302cd1593eed
LP1492793: Support Application Name Postgres Option

If app_settings/database/application_name is defined,
connections by that service will have the application_name
postgres option set, allowing log analyzers to associate
queries and services.

To test:

[1] Apply the patch and restart OpenSRF services.
[2] Query the pg_stat_activity table in the PostgreSQL
    database; the application_name column should now
    be populated with values like 'open-ils.cstore'
    or 'open-ils.storage' that indicate which Evergreen
    service holds the database connection.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/c-apps/oils_sql.c
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg.pm