How to tell if a trigger is disabled

Started by Ian Hardingover 17 years ago3 messagesgeneral
Jump to latest
#1Ian Harding
harding.ian@gmail.com

Is there any way to tell if a trigger or triggers are disabled on a
table? I was updating some data a week or two ago and must have
forgotten to re-enable the triggers. Took me a little while to figure
out. \d tablename didn't tell me, nor did \d+ tablename.

This is on 8.2.3.

Thanks,

- Ian

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ian Harding (#1)
Re: How to tell if a trigger is disabled

"Ian Harding" <harding.ian@gmail.com> writes:

Is there any way to tell if a trigger or triggers are disabled on a
table? I was updating some data a week or two ago and must have
forgotten to re-enable the triggers. Took me a little while to figure
out. \d tablename didn't tell me, nor did \d+ tablename.

This is on 8.2.3.

FWIW, 8.3's psql knows about showing this in \dt.

regards, tom lane

#3Ian Harding
harding.ian@gmail.com
In reply to: Tom Lane (#2)
Re: How to tell if a trigger is disabled

On Fri, Aug 15, 2008 at 5:59 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

"Ian Harding" <harding.ian@gmail.com> writes:

Is there any way to tell if a trigger or triggers are disabled on a
table? I was updating some data a week or two ago and must have
forgotten to re-enable the triggers. Took me a little while to figure
out. \d tablename didn't tell me, nor did \d+ tablename.

This is on 8.2.3.

FWIW, 8.3's psql knows about showing this in \dt.

Yet another reason to upgrade.. Thanks!

- Ian