Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Ofq-0007cA-9w for pgsql-sql@arkaria.postgresql.org; Wed, 15 Jan 2014 11:30:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W3Ofp-0000cG-Ol for pgsql-sql@arkaria.postgresql.org; Wed, 15 Jan 2014 11:30:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Ofo-0000c5-R0 for pgsql-sql@postgresql.org; Wed, 15 Jan 2014 11:30:16 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Ofh-0002hZ-4Q for pgsql-sql@postgresql.org; Wed, 15 Jan 2014 11:30:16 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W3Off-0004vc-Ig for pgsql-sql@postgresql.org; Wed, 15 Jan 2014 03:30:07 -0800 Date: Wed, 15 Jan 2014 03:30:07 -0800 (PST) From: gmb To: pgsql-sql@postgresql.org Message-ID: <1389785407565-5787212.post@n5.nabble.com> In-Reply-To: References: <1389775925366-5787181.post@n5.nabble.com> Subject: Re: debugging triggers - get original statement? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Thanks for your reply, Lucazeo. > BUT: it is dangerous in production: you can fill your file system very > fast and slow down the system. Yes, this was my concern as well. In my current situation this may be too risky. >Another way is: modify the trigger and write informations you need in >a specific table. Not an elegant solution but... Exactly what I had in mind, but I hoped to be able to log the original statement as well . In that way I can simulate the problem-causing transactions exactly in a more controlled env by running the scripts as in the log table. Thanks any way. -- View this message in context: http://postgresql.1045698.n5.nabble.com/debugging-triggers-get-original-statement-tp5787181p5787212.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql