psql tab completion for DROP TRIGGER/RULE and ALTER TABLE ... DISABLE/ENABLE

Started by Andreas Karlssonover 12 years ago2 messageshackers
Jump to latest
#1Andreas Karlsson
andreas.karlsson@percona.com

Hi,

When benchmarking an application I got annoyed at how basic the tab
completion for ALTER TABLE ... DISABLE/ENABLE TRIGGER and DROP TRIGGER
is. So here is a patch improving the tab completion around triggers. For
consistency I have also added the same completions to rules since their
DDL is almost identical.

--
Andreas Karlsson

Attachments:

tab-complete-trigger-rule-ddl.patchtext/x-patch; name=tab-complete-trigger-rule-ddl.patchDownload+111-0
#2Stephen Frost
sfrost@snowman.net
In reply to: Andreas Karlsson (#1)
Re: psql tab completion for DROP TRIGGER/RULE and ALTER TABLE ... DISABLE/ENABLE

Andreas,

* Andreas Karlsson (andreas@proxel.se) wrote:

When benchmarking an application I got annoyed at how basic the tab
completion for ALTER TABLE ... DISABLE/ENABLE TRIGGER and DROP
TRIGGER is. So here is a patch improving the tab completion around
triggers. For consistency I have also added the same completions to
rules since their DDL is almost identical.

Please add this to the commitfest application, so we don't forget about
this patch.

http://commitfest.postgresql.org

Thanks!

Stephen