Re: Disabling triggers in a transaction

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Geoffrey <esoteric(at)3times25(dot)net>
Cc: pgsql-general(at)postgresql(dot)org, Terry Lee Tucker <terry(at)esc1(dot)com>
Subject: Re: Disabling triggers in a transaction
Date: 2005-03-09 04:05:12
Message-ID: 200503090405.j2945Cr18288@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Geoffrey wrote:
> Terry Lee Tucker wrote:
> > Tom,
> >
> > Do you feel this is a safe method for disabling triggers in the rare cases
> > where one finds that it is prudent to do that? Do you think that the column,
> > "reltriggers", is permanent fixture in pg_class? What is your advice on this?
>
> I'd be quite interested in this as well. Can one depend on this column
> in the future? Even if not, as long as one verifies it still exists, is
> this a viable option for trigger control within a transaction?
>
> (This guy Tucker comes up with some interesting stuff...) :)

It is the only known way to control triggers though it isn't regularly
tested by the developers.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robby Russell 2005-03-09 04:06:41 Re: PostgreSQL still for Linux only?
Previous Message Joshua D. Drake 2005-03-09 03:56:27 Re: PostgreSQL still for Linux only?