From: Gaetano Mendola <mendola@bigfoot.com>
To: Jie Liang <jie@stbernard.com>
Subject: Re: Log msg
Date: Tue, 18 May 2004 01:12:23 +0200
Message-ID: <40A946D7.2060508@bigfoot.com> (raw)
In-Reply-To: <E7E213858379814A9AE48CA6754F5ECB1E1FBF@mail01.stbernard.com>
References: <E7E213858379814A9AE48CA6754F5ECB1E1FBF@mail01.stbernard.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mendola@bigfoot.com, jie@stbernard.com
Subject: Re: Log msg
In-Reply-To: <40A946D7.2060508@bigfoot.com>
References: <E7E213858379814A9AE48CA6754F5ECB1E1FBF@mail01.stbernard.com> <40A946D7.2060508@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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