Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6385CB5DCC9 for ; Mon, 11 Jul 2011 21:28:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 96597-07 for ; Tue, 12 Jul 2011 00:28:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 0FCF0B5DCC7 for ; Mon, 11 Jul 2011 21:28:42 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p6C0Shk27161; Mon, 11 Jul 2011 20:28:43 -0400 (EDT) From: Bruce Momjian Message-Id: <201107120028.p6C0Shk27161@momjian.us> Subject: Re: BUG #6081: trigger CRUD log entries, or documentation not clear that triggers do not log In-Reply-To: <201106290656.p5T6ueLN081668@wwwmaster.postgresql.org> To: Tom Hodder Date: Mon, 11 Jul 2011 20:28:43 -0400 (EDT) CC: pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/91 X-Sequence-Number: 30703 Tom Hodder wrote: > > The following bug has been logged online: > > Bug reference: 6081 > Logged by: Tom Hodder > Email address: tom@limepepper.co.uk > PostgreSQL version: 8.4 > Operating system: Fedora 14 x86_64 > Description: trigger CRUD log entries, or documentation not clear > that triggers do not log > Details: > > with this log directive set; > log_statement = 'mod' > > I would expect that all CRUD statements would be logged to log_filename. > However CRUD statements called from trigger functions are not logged. > > This is unexpected, and does not reflect my reading of the documentation. log_statement only shows client-submitted queries, not function or trigger queries. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +