Re: log_statement setting

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: log_statement setting
Date: 2021-08-18 16:06:27
Message-ID: 20210818160627.GC13032@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

> 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.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

If only the physical world exists, free will is an illusion.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vijaykumar Jain 2021-08-18 18:27:24 Re: PostgreSQL Automatic Failover Windows Server
Previous Message Jayadevan M 2021-08-18 16:04:08 log_statement setting