Re: How to show current schema of running queries in postgresql 13

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: 陈锡汉 <cavonchen(at)163(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to show current schema of running queries in postgresql 13
Date: 2023-06-26 09:51:32
Message-ID: CAFj8pRDZy6Ur6PXwmVTRah+XYgSw_714Yg2AxDn8RGtAPbtd=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

po 26. 6. 2023 v 9:19 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
napsal:

> Hi
>
>
>
> no, there is nothing for this purpose.
>
> you can use application_name
>
> so user can do
>
> SET search_path=MySchema;
> SET application_name = 'MySchema';
> SELECT * FROM ...
>
>
and application name is visible from pg_stat_activity

regards

Pavel Stehule

>
>
>
>
>>
>> Thank you!
>> Best regards,
>> CavonChen
>>
>>
>>
>>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oduba, Ernest 2023-06-26 09:56:25 PostgreSQL Commercial Support
Previous Message Pavel Stehule 2023-06-26 07:19:18 Re: How to show current schema of running queries in postgresql 13