Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWnl3-0001jL-Id for pgsql-jdbc@arkaria.postgresql.org; Thu, 17 Oct 2013 13:36:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VWnl3-0001sv-06 for pgsql-jdbc@arkaria.postgresql.org; Thu, 17 Oct 2013 13:36:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWnl2-0001rt-3h for pgsql-jdbc@postgreSQL.org; Thu, 17 Oct 2013 13:36:56 +0000 Received: from [193.17.19.204] (helo=relaismail.minefi.gouv.fr) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWnkw-0006gW-B9 for pgsql-jdbc@postgreSQL.org; Thu, 17 Oct 2013 13:36:55 +0000 Received: From cdn20034.douane ([10.116.200.234]) by cdnlan001.douane (WebShield SMTP v4.5 MR2); id 1382017012453; Thu, 17 Oct 2013 15:36:52 +0200 Received: from cdnlan035.douane (cdnlan035.douane [10.116.202.67]) by CDN20034.douane (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id for pgsql-jdbc@postgreSQL.org; Thu, 17 Oct 2013 15:36:46 +0200 Date: Thu, 17 Oct 2013 15:36:44 +0200 From: =?ISO-8859-1?Q?St=E9phan_BEUZE?= Subject: Set application name from jdbc url To: pgsql-jdbc@postgreSQL.org Message-id: <525FE7EC.9050003@douane.finances.gouv.fr> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 X-Host-Lookup-Failed: Reverse DNS lookup failed for 193.17.19.204 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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