From: Bruce Momjian <bruce@momjian.us>
To: Jayadevan M <maymala.jayadevan@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: log_statement setting
Date: Wed, 18 Aug 2021 12:06:27 -0400
Message-ID: <20210818160627.GC13032@momjian.us> (raw)
In-Reply-To: <CAFS1N4jqdaGHcckabvH38i1_jmDKjB3Q-hR9VxJDZSWioQvaHQ@mail.gmail.com>
References: <CAFS1N4jqdaGHcckabvH38i1_jmDKjB3Q-hR9VxJDZSWioQvaHQ@mail.gmail.com>
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@momjian.us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bruce@momjian.us, maymala.jayadevan@gmail.com
Subject: Re: log_statement setting
In-Reply-To: <20210818160627.GC13032@momjian.us>
References: <CAFS1N4jqdaGHcckabvH38i1_jmDKjB3Q-hR9VxJDZSWioQvaHQ@mail.gmail.com> <20210818160627.GC13032@momjian.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