Re: Indicate disabled triggers in \d - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: Indicate disabled triggers in \d
Date
Msg-id 37ed240d0611062055r5d3e4652p733f5e413f7fc4ad@mail.gmail.com
Whole thread Raw
In response to Re: Indicate disabled triggers in \d  (David Fetter <david@fetter.org>)
Responses Re: Indicate disabled triggers in \d
List pgsql-hackers
As discussed briefly on pgsql-hackers, the current psql \d command
does not make any distinction between enabled and disabled triggers.

The attached patch modifies psql's describeOneTableDetails() such that
triggers and disabled triggers are displayed as two separate footer
lists, for example:

Triggers:
   y AFTER DELETE ON x FOR EACH ROW EXECUTE PROCEDURE do_something()
Disabled triggers:
   z BEFORE INSERT ON x FOR EACH ROW EXECUTE PROCEDURE input_stuff()

The patch compiled and tested cleanly on my machine, and passed all
regression tests.

I didn't find any relevant documentation that needed patching, so this
feature add should work fine as a standalone patch.

Regards,
BJ

Attachment

pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: Introducing an advanced Frequent Update Optimization
Next
From: "Brendan Jurd"
Date:
Subject: Re: Indicate disabled triggers in \d