From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Luca Ferrari <fluca1978@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pgaudit.log_parameter
Date: Wed, 31 Jul 2019 15:58:15 +0300
Message-ID: <824ca351-a4ff-6bb1-a534-9435e4f9a7a9@postgrespro.ru> (raw)
In-Reply-To: <CAKoxK+6etTqJ0nxGF9KgUUaq-KuByqPd5VAAtsNHmv-iCJuEuw@mail.gmail.com>
References: <CAKoxK+6etTqJ0nxGF9KgUUaq-KuByqPd5VAAtsNHmv-iCJuEuw@mail.gmail.com>
Hello,
On 31.07.2019 14:21, Luca Ferrari wrote:
> Hello,
> I'm a little confused about the setting pgaudit.log_parameter of the
> pgaudit extension
> (https://github.com/pgaudit/pgaudit/blob/master/README.md).
> What's the purpose of this? AN example of query that will trigger such
> parameter logging? Apparently I cannot get it providing me more
> information than '<none>'.
pgaudit.log_parameter allows to log parameters of prepared statements.
See the documentation:
https://www.postgresql.org/docs/current/sql-prepare.html
The following example logs parameters if pgaudit.log_parameter is on:
EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00);
It should log parameters: 1, 'Hunter Valley', 't', 200.00
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
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: a.zakirov@postgrespro.ru, fluca1978@gmail.com
Subject: Re: pgaudit.log_parameter
In-Reply-To: <824ca351-a4ff-6bb1-a534-9435e4f9a7a9@postgrespro.ru>
References: <CAKoxK+6etTqJ0nxGF9KgUUaq-KuByqPd5VAAtsNHmv-iCJuEuw@mail.gmail.com> <824ca351-a4ff-6bb1-a534-9435e4f9a7a9@postgrespro.ru>
* 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