Re: Log msg

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Jie Liang <jie(at)stbernard(dot)com>
Subject: Re: Log msg
Date: 2004-05-17 23:12:23
Message-ID: 40A946D7.2060508@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jie Liang wrote:

> Hi,All,
>
>
> How to config log file to log statement without CONTEXT stuff? I want
> log query, but not the detail unless there is a problem,
> e.g. Delete aaa from mytable where mysqlfunction(bbb);
> I want log this statement,
> but not any CONTEXT inside mysqlfunction, because it will easily filled
> up my disk if mytable have millions of entries, meanwhile, the log file
> become useless.
> But if I set log_statement = true, log file will log millions of
> statement in mysqlfunction, but I set log_statement=false, log file
> won't log query at all.
> Simply say, I want log what I execute(my query), but not how execute
> (process) .

Decrease the verbosity of your logs using:

log_error_verbosity = terse

Regards
Gaetano Mendola

In response to

  • Log msg at 2004-05-17 19:15:51 from Jie Liang

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2004-05-18 07:06:10 Re: How to determine if ODBC was compiled in?
Previous Message Duane Lee - EGOVX 2004-05-17 23:08:34 Hardware Platform