Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Logging Paramet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 15861 of 17437
Post > Topic >>

Logging Parameter Values

by yazicivo@[EMAIL PROTECTED] (Volkan YAZICI) Jun 19, 2008 at 02:27 PM

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 might need 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.

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 6 Posts in Topic:
Logging Parameter Values
yazicivo@[EMAIL PROTECTED  2008-06-19 14:27:03 
Re: Logging Parameter Values
tgl@[EMAIL PROTECTED] (T  2008-06-19 10:39:28 
Re: Logging Parameter Values
yazicivo@[EMAIL PROTECTED  2008-06-19 17:54:32 
Re: Logging Parameter Values
tgl@[EMAIL PROTECTED] (T  2008-06-19 11:05:25 
Re: Logging Parameter Values
alvherre@[EMAIL PROTECTED  2008-06-19 11:18:42 
Re: Logging Parameter Values
yazicivo@[EMAIL PROTECTED  2008-06-20 09:08:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:33:51 CST 2008.