Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D33DF13364DE for ; Sat, 25 Dec 2010 03:09:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 87973-04 for ; Sat, 25 Dec 2010 07:09:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 81F48133616B for ; Sat, 25 Dec 2010 03:09:39 -0400 (AST) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 474E828454; Sat, 25 Dec 2010 02:09:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=wg7AKeVqtJhdasoNBwSX7MwLcvQ=; b=wz+yDr lCi44RLmqAq/UAmWfLYlsj5+sdfpvd8G7InxpUY3AC+ykAl2MO2j725KgkC9e+K7 p+X4bkwvWX8TjxOvttJ5DKC48Uga7ceuVM88Sh9jextUkDu/V6vaxPI9d9eZm18A K6yR1hHfIxPY8yQhYZhEx9gnOyIOl68/FJmTs= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 117AC2843D; Sat, 25 Dec 2010 02:09:37 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 62405AB13; Sat, 25 Dec 2010 02:09:36 -0500 (EST) Date: Sat, 25 Dec 2010 02:09:35 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Thomas Kellerer cc: pgsql-jdbc@postgresql.org Subject: Re: 9.0 and pg_stat_activity.application_name In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/69 X-Sequence-Number: 21307 On Thu, 1 Jul 2010, Kris Jurka wrote: > On Wed, 30 Jun 2010, Thomas Kellerer wrote: > >> will there be a way in the upcoming 9.0 driver to set the new >> application_name property for pg_stat_activity? > > When implemented I imagine that it will be able to be set at connection start > via a URL or datasource parameter and then at runtime by > Connection.setClientInfo("ApplicationName", "My App"). > I have implemented this. You can now set application_name on connection startup with an ApplicationName URL parameter and it can be set dynamically with Connection.setClientInfo. Kris Jurka