Re: How to log query parameters instead of variables with log_min_duration_statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Max Williams <Max(dot)Williams(at)mflow(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to log query parameters instead of variables with log_min_duration_statement
Date: 2010-06-28 14:28:16
Message-ID: 27097.1277735296@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Max Williams <Max(dot)Williams(at)mflow(dot)com> writes:
> I am logging long queries with log_min_duration_statement but would like to see the parameters for parameterized queries. Eg...

You need a more recent version of Postgres. The versions that can do
that at all (8.2 and up) will do it automatically.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neubert Joachim 2010-06-28 15:22:19 convert accented character to base character
Previous Message Thomas Kellerer 2010-06-28 12:52:48 Re: Looking for a PostGre SQL Trainer, Bangalore