X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4864E9FA646 for ; Sun, 25 Jun 2006 23:24:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 14565-10 for ; Sun, 25 Jun 2006 23:24:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 891C79FA2B1 for ; Sun, 25 Jun 2006 23:24:18 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5Q2OFxC017964; Sun, 25 Jun 2006 22:24:15 -0400 (EDT) To: kah_hang_ang@toray.com.my cc: "hubert depesz lubaczewski" , pgsql-admin@postgresql.org Subject: Re: Is it possible to trace all transactions done? In-reply-to: References: Comments: In-reply-to kah_hang_ang@toray.com.my message dated "Mon, 26 Jun 2006 10:04:52 +0800" Date: Sun, 25 Jun 2006 22:24:15 -0400 Message-ID: <17963.1151288655@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/221 X-Sequence-Number: 22183 kah_hang_ang@toray.com.my writes: > After I enable the log_statement Postgresql do log the statements triggered > but I need more detail info. - time the statements been triggered to be log > as well, In recent PG releases you set log_line_prefix to add whatever you want to log entries. Older versions are a bit less flexible, but there's pretty much always been an option to include a timestamp in log entries. Please read the administrator's guide ... regards, tom lane