pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgaudit.log_parameter
3+ messages / 3 participants
[nested] [flat]

* pgaudit.log_parameter
@ 2019-07-31 11:21  Luca Ferrari <fluca1978@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Luca Ferrari @ 2019-07-31 11:21 UTC (permalink / raw)
  To: pgsql-general

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

Thanks,
Luca





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgaudit.log_parameter
@ 2019-07-31 12:57  Artur Zakirov <zaartur@gmail.com>
  parent: Luca Ferrari <fluca1978@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Artur Zakirov @ 2019-07-31 12:57 UTC (permalink / raw)
  To: Luca Ferrari <fluca1978@gmail.com>; pgsql-general

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

-- 
Artur





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgaudit.log_parameter
@ 2019-07-31 12:58  Arthur Zakirov <a.zakirov@postgrespro.ru>
  parent: Luca Ferrari <fluca1978@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Arthur Zakirov @ 2019-07-31 12:58 UTC (permalink / raw)
  To: Luca Ferrari <fluca1978@gmail.com>; pgsql-general

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-07-31 12:58 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-31 11:21 pgaudit.log_parameter Luca Ferrari <fluca1978@gmail.com>
2019-07-31 12:57 ` Artur Zakirov <zaartur@gmail.com>
2019-07-31 12:58 ` Arthur Zakirov <a.zakirov@postgrespro.ru>

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