agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: gmb <gmbouwer@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: debugging triggers - get original statement?
Date: Wed, 15 Jan 2014 03:30:07 -0800 (PST)
Message-ID: <1389785407565-5787212.post@n5.nabble.com> (raw)
In-Reply-To: <CAHZ=uVCV-u25SEFSHaHWQshbRO0Lu037S4yRabN8=4kdSKo5ew@mail.gmail.com>
References: <1389775925366-5787181.post@n5.nabble.com>
<CAHZ=uVCV-u25SEFSHaHWQshbRO0Lu037S4yRabN8=4kdSKo5ew@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
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....
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
view thread (4+ messages) latest in thread
Message-ID: <1389785407565-5787212.post@n5.nabble.com>
Permalink: ../1389785407565-5787212.post@n5.nabble.com/
Also on: postgresql.org/message-id/1389785407565-5787212.post@n5.nabble.com
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gmbouwer@gmail.com
Subject: Re: debugging triggers - get original statement?
In-Reply-To: <1389785407565-5787212.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox