From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey V. Lepikhov <a.lepikhov@postgrespro.ru>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: SET SESSION AUTHORIZATION command doesn't update status of backend
Date: Fri, 15 Oct 2021 09:50:05 -0400
Message-ID: <952987.1634305805@sss.pgh.pa.us> (raw)
In-Reply-To: <76ae5aaf-1843-4d84-0430-f35da7f786b9@postgrespro.ru>
References: <76ae5aaf-1843-4d84-0430-f35da7f786b9@postgrespro.ru>
"Andrey V. Lepikhov" <a.lepikhov@postgrespro.ru> writes:
> Nikita Degtyarev (n.degtyarev@postgrespro.ru) reported a suspicious
> behaviour of a SET SESSION AUTHORIZATION command. If you switch user in
> a session:
> [ pg_stat_activity doesn't change ]
I don't think this is a bug. pg_stat_activity is reporting the session's
login identity, and that seems fine, though maybe the documentation about
it needs to be clarified.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, a.lepikhov@postgrespro.ru, pgsql-bugs@lists.postgresql.org
Subject: Re: SET SESSION AUTHORIZATION command doesn't update status of backend
In-Reply-To: <952987.1634305805@sss.pgh.pa.us>
* 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