pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Marcos Pegoraro <marcos@f10.com.br>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: get user info on log
Date: Sat, 17 Sep 2022 14:41:26 -0700
Message-ID: <227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com> (raw)
In-Reply-To: <CAB-JLwbD7VuzC0geb+=LMR_URA03LqEN3+rWbSgWL+Md498LJA@mail.gmail.com>
References: <CAB-JLwYR8EQFepAuvBm2MPG9oWh1xXUR_deXguQYu4ijJNgAdg@mail.gmail.com>
	<dff2c688-e652-8561-890e-e783c15c8686@aklaver.com>
	<CAB-JLwbD7VuzC0geb+=LMR_URA03LqEN3+rWbSgWL+Md498LJA@mail.gmail.com>

On 9/16/22 06:00, Marcos Pegoraro wrote:
> Em qui., 15 de set. de 2022 às 12:59, Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> escreveu:
> 
>     test(5432)=# set role maura;
>     ERROR:  role "maura" does not exist
>     test(5432)=# SET SESSION AUTHORIZATION 'maura';
>     ERROR:  role "maura" does not exist
> 
> No, I was asking about an error occurring later, not on set session 
> authorization command.
> 
> set role maura;
> --user Maura exists and set was done correctly
> --now I´m working as Maura
> select 1/0; -- I would like to see this exception on log being logged as 
> maura

I don't know of a way to get this.

> 
> thanks
> Marcos
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (6+ messages)

Message-ID: <227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com>
Permalink:  ../227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com/
Also on:    postgresql.org/message-id/227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, marcos@f10.com.br
  Subject: Re: get user info on log
  In-Reply-To: <227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com>
  References: <CAB-JLwYR8EQFepAuvBm2MPG9oWh1xXUR_deXguQYu4ijJNgAdg@mail.gmail.com> <dff2c688-e652-8561-890e-e783c15c8686@aklaver.com> <CAB-JLwbD7VuzC0geb+=LMR_URA03LqEN3+rWbSgWL+Md498LJA@mail.gmail.com> <227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com>

* 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