Search Postgresql Archives

Re: log_statement setting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, Aug 18, 2021 at 9:36 PM Bruce Momjian <bruce@xxxxxxxxxx> wrote:
On Wed, Aug 18, 2021 at 09:34:08PM +0530, Jayadevan M wrote:
> Hello all,
>
> A doubt on the setting  'log_statement'. Is it possible to set this at database
> /user level?

Sure, ALTER USER/DATABASE ... SET.
Thank you. Follow up question- If it is set to different values for different users/databases, how can I get those values?  For example,
I have a server with 4 databases. If I just query pg_settings, I get only one value.

> I get 'all' when I try
> select * from pg_settings where name = 'log_statement'
> Does this mean all statements by any user on any database in that server are
> getting logged? This is for auditing purposes.

Yes.
Thanks.  


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux