X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=b122dfe5397d53144026b0458c783517e57a2f61;hb=7c778ae8818b949dfa5fd71b1aea7dd58e2f5e23;hp=3b702aeef83491d590a631e142f37fec856151c1;hpb=5dbb7471b0a7ca7506f56f4c6dbaf58e790c6b7c;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 3b702aee..b122dfe5 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -340,6 +340,7 @@ static int c_psql_connect(c_psql_database_t *db) { C_PSQL_PAR_APPEND(buf, buf_len, "sslmode", db->sslmode); C_PSQL_PAR_APPEND(buf, buf_len, "krbsrvname", db->krbsrvname); C_PSQL_PAR_APPEND(buf, buf_len, "service", db->service); + C_PSQL_PAR_APPEND(buf, buf_len, "application_name", "collectd_postgresql"); db->conn = PQconnectdb(conninfo); db->proto_version = PQprotocolVersion(db->conn);