pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Marc Mamin <M.Mamin@intershop.de>
Cc: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC gripe list
Date: Thu, 31 Mar 2011 10:47:36 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1103311046270.25650@leary.csoft.net> (raw)
In-Reply-To: <C4DAC901169B624F933534A26ED7DF31034BBB6E@JENMAIL01.ad.intershop.net>
References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com>
	<201103311058.57025.achill@matrix.gatewaynet.com>
	<in1jm9$sqa$1@dough.gmane.org>
	<201103311321.51440.achill@matrix.gatewaynet.com>
	<C4DAC901169B624F933534A26ED7DF31034BBB6E@JENMAIL01.ad.intershop.net>



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



view thread (65+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1103311046270.25650@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1103311046270.25650@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1103311046270.25650@leary.csoft.net

 · 

reply

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: books@ejurka.com, M.Mamin@intershop.de, achill@matrix.gatewaynet.com
  Subject: Re: JDBC gripe list
  In-Reply-To: <alpine.BSO.2.00.1103311046270.25650@leary.csoft.net>
  References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com> <201103311058.57025.achill@matrix.gatewaynet.com> <in1jm9$sqa$1@dough.gmane.org> <201103311321.51440.achill@matrix.gatewaynet.com> <C4DAC901169B624F933534A26ED7DF31034BBB6E@JENMAIL01.ad.intershop.net> <alpine.BSO.2.00.1103311046270.25650@leary.csoft.net>

* 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