From: Stéphan BEUZE <stephan.beuze@douane.finances.gouv.fr>
To: pgsql-jdbc@postgreSQL.org
Subject: Set application name from jdbc url
Date: Thu, 17 Oct 2013 15:36:44 +0200
Message-ID: <525FE7EC.9050003@douane.finances.gouv.fr> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hi,
I want to set the application name of the connections of my application.
Then I can list the rows in `pg_stat_activity` with a non empty
`application_name` column.
I have setup the following JDBC url for connecting to my Postgresql
database:
jdbc:postgresql://localhost:5435/MyDB?application-name=MyApp
I have tried also this url with no more success.
jdbc:postgresql://localhost:5435/MyDB?application_name=MyApp
I also tried these two variant of application name parameter :
*applicationName* and *ApplicationName* with no luck.
What is the correct parameter name ?
Here is my JDBC driver version: **9.1-901.jdbc4**
I try to connect a Postgresql server : 9.2.4 - 64bit - running on Windows 7
Stephan
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: stephan.beuze@douane.finances.gouv.fr
Subject: Re: Set application name from jdbc url
In-Reply-To: <525FE7EC.9050003@douane.finances.gouv.fr>
References: <525FE7EC.9050003@douane.finances.gouv.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox