Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 654BC1337B2F for ; Thu, 31 Mar 2011 11:58:51 -0300 (ADT) 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 98256-05 for ; Thu, 31 Mar 2011 14:58:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id 532D21337B47 for ; Thu, 31 Mar 2011 11:58:32 -0300 (ADT) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p2VEwV9p072340 for ; Thu, 31 Mar 2011 17:58:31 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p2VEwVp4072339 for pgsql-jdbc@postgresql.org; Thu, 31 Mar 2011 17:58:31 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-jdbc@postgresql.org Subject: Re: JDBC gripe list Date: Thu, 31 Mar 2011 16:58:31 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201103311758.31457.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201103/155 X-Sequence-Number: 21710 =CE=A3=CF=84=CE=B9=CF=82 Thursday 31 March 2011 17:47:36 =CE=BF/=CE=B7 Kris= Jurka =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: >=20 > On Thu, 31 Mar 2011, Marc Mamin wrote: >=20 > > > >>> Achilleas Mantzios, 31.03.2011 09:58: > >> You mean log_line_prefix parameter. Ok but a > >> log_line_prefix =3D '%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=20 > > relevant after changing the connection role, but an additional paramete= r=20 > > to log the current role would be indeed interesting. > > >=20 > A patch was worked on for the server for 9.1 to implement this, but it=20 > didn't make it in, perhaps for 9.2... >=20 > https://commitfest.postgresql.org/action/patch_view?id=3D524 Cool, thanks Kris. >=20 > Kris Jurka >=20 =2D-=20 Achilleas Mantzios