Logging Parameter Values - Mailing list pgsql-general

From Volkan YAZICI
Subject Logging Parameter Values
Date
Msg-id 8763s5fywo.fsf@alamut.mobiliz.com.tr
Whole thread Raw
Responses Re: Logging Parameter Values  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

While log_statements logs parameter values with the logged queries, I
cannot see parameter values logged for erronous queries and queries
catched by log_min_duration_statements.

Here are our logging settings:

  # grep ^log postgresql.conf
  logging_collector = on                  # Enable capturing of stderr and csvlog
  log_directory = '/srv/pg/pg_log'        # directory where log files are written,
  log_filename = '%Y-%m-%d_%H%M%S.log'    # log file name pattern,
  log_rotation_age = 7d                   # Automatic rotation of logfiles will
  log_rotation_size = 0MB                 # Automatic rotation of logfiles will
  log_min_duration_statement = 1000       # -1 is disabled, 0 logs all statements
  log_line_prefix = '%d %u %m '           # special values:

For instance, consider below log snippets.

  eray_1_5_1_0 emove 2008-06-19 10:19:50.124 EEST ERROR:  function isnull(integer, integer) does not exist at character
195
  eray_1_5_1_0 emove 2008-06-19 10:19:50.124 EEST HINT:  No function matches the given name and argument types. You
mightneed to add explicit type casts. 
  eray_1_5_1_0 emove 2008-06-19 10:19:50.124 EEST STATEMENT:  SELECT * FROM mugroup g WHERE g.groupid IN ((... user
id=$1)UNION (SELECT ...)) 

  test_1_5_0_0 emove 2008-05-15 15:07:08.631 EEST LOG:  duration: 68544.986 ms  parse <unnamed>: insert into
interprettimelog(...) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) 

Is this something expected? What might I be missing? How can I make
PostgreSQL log parameter values also?


Regards.

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: Understanding fsync
Next
From: Steve Clark
Date:
Subject: Re: renumber table