Re: Trace triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marek Lewczuk <newsy(at)lewczuk(dot)com>
Cc: Lista dyskusyjna pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trace triggers
Date: 2005-01-13 15:53:18
Message-ID: 9431.1105631598@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marek Lewczuk <newsy(at)lewczuk(dot)com> writes:
> I have a table with many triggers. Now, it can happen that in middle of
> execution one of table's triggers there will be unknown error (like
> "NEW" is not assigned yet) - is there a way to trace which trigger fired
> this error ?

Use PG 7.4 or later, and look at the CONTEXT part of the error message.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-01-13 16:05:52 Re: Réf. : Re: Réf. : Debugging SPI C functions
Previous Message Alvaro Herrera 2005-01-13 15:50:29 Re: vacuum vs open transactions