Log msg

From: "Jie Liang" <jie(at)stbernard(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Log msg
Date: 2004-05-14 21:59:03
Message-ID: E7E213858379814A9AE48CA6754F5ECB363378@mail01.stbernard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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) .

Jie Liang

Browse pgsql-admin by date

  From Date Subject
Next Message Robert 2004-05-14 22:39:49 initdb problem (cygwin)
Previous Message Jørgen Lie Pettersen 2004-05-14 13:12:15 Query