Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 123971337BBA for ; Thu, 31 Mar 2011 11:47:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 35522-01-7 for ; Thu, 31 Mar 2011 14:47: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 7E8691337B6E for ; Thu, 31 Mar 2011 11:47:36 -0300 (ADT) Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id EB13728424; Thu, 31 Mar 2011 10:47:36 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id AE700A3E4; Thu, 31 Mar 2011 10:47:36 -0400 (EDT) Date: Thu, 31 Mar 2011 10:47:36 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Marc Mamin cc: Achilleas Mantzios , pgsql-jdbc@postgresql.org Subject: Re: JDBC gripe list In-Reply-To: Message-ID: References: <201103311058.57025.achill@matrix.gatewaynet.com> <201103311321.51440.achill@matrix.gatewaynet.com> 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: 201103/154 X-Sequence-Number: 21709 On Thu, 31 Mar 2011, Marc Mamin wrote: > >>> Achilleas Mantzios, 31.03.2011 09:58: >> You mean log_line_prefix parameter. Ok but a >> log_line_prefix = '%d %a %u %p %c %m ' >> while it prints correctly %a (application) (as set by SET application_name), >> it does not print correctly %u (user) (as set by SET ROLE). > > I would not say that %u return an incorrect user as the info stay > relevant after changing the connection role, but an additional parameter > to log the current role would be indeed interesting. > A patch was worked on for the server for 9.1 to implement this, but it didn't make it in, perhaps for 9.2... https://commitfest.postgresql.org/action/patch_view?id=524 Kris Jurka