pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Hodder <tom@limepepper.co.uk>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6081: trigger CRUD log entries, or documentation not clear that triggers do not log
Date: Mon, 11 Jul 2011 20:28:43 -0400 (EDT)
Message-ID: <201107120028.p6C0Shk27161@momjian.us> (raw)
In-Reply-To: <201106290656.p5T6ueLN081668@wwwmaster.postgresql.org>

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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (2+ messages)

Message-ID: <201107120028.p6C0Shk27161@momjian.us>
Permalink:  ../201107120028.p6C0Shk27161@momjian.us/
Also on:    postgresql.org/message-id/201107120028.p6C0Shk27161@momjian.us

 · 

reply

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-bugs@postgresql.org
  Cc: bruce@momjian.us, tom@limepepper.co.uk
  Subject: Re: BUG #6081: trigger CRUD log entries, or documentation not clear that triggers do not log
  In-Reply-To: <201107120028.p6C0Shk27161@momjian.us>
  References: <201106290656.p5T6ueLN081668@wwwmaster.postgresql.org> <201107120028.p6C0Shk27161@momjian.us>

* 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