pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to get value of parameter set in session for other user
3+ messages / 2 participants
[nested] [flat]

* how to get value of parameter set in session for other user
@ 2021-12-07 12:16  Vikas Sharma <shavikas@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Vikas Sharma @ 2021-12-07 12:16 UTC (permalink / raw)
  To: pgsql-general

Hi There,

Is it possible in postgres to get the value of the parameter currently set
in the session of the other user? The other user might have set the value
using SET <parameter>.

If the other user has set the value as "alter role" then it should appear
in select * from pg_roles.

Thank you
-Vikas

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to get value of parameter set in session for other user
@ 2021-12-07 14:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Vikas Sharma <shavikas@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2021-12-07 14:45 UTC (permalink / raw)
  To: Vikas Sharma <shavikas@gmail.com>; +Cc: pgsql-general

Vikas Sharma <shavikas@gmail.com> writes:
> Is it possible in postgres to get the value of the parameter currently set
> in the session of the other user?

No.  That information only exists within the other session's process.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to get value of parameter set in session for other user
@ 2021-12-08 10:25  Vikas Sharma <shavikas@gmail.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Vikas Sharma @ 2021-12-08 10:25 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general

Hi Tom,

Thanks for the clarification.

Regards
Vikas

On Tue, 7 Dec 2021 at 14:45, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Vikas Sharma <shavikas@gmail.com> writes:
> > Is it possible in postgres to get the value of the parameter currently
> set
> > in the session of the other user?
>
> No.  That information only exists within the other session's process.
>
>                         regards, tom lane
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-12-08 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 12:16 how to get value of parameter set in session for other user Vikas Sharma <shavikas@gmail.com>
2021-12-07 14:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-12-08 10:25   ` Vikas Sharma <shavikas@gmail.com>

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