• Heikki Linnakangas's avatar
    Improve tab-completion of DROP and ALTER ENABLE/DISABLE on triggers and rules. · 631e7f6b
    Heikki Linnakangas authored
    At "DROP RULE/TRIGGER triggername ON ...", tab-complete tables that have
    a rule/trigger with that name.
    
    At "ALTER TABLE tablename ENABLE/DISABLE TRIGGER/RULE ...", tab-complete to
    rules/triggers on that table. Previously, we would tab-complete to all
    rules or triggers, not just those that are on that table.
    
    Also, filter out internal RI triggers from the list. You can't DROP them,
    and enabling/disabling them is such a rare (and dangerous) operation that
    it seems better to hide them.
    
    Andreas Karlsson, reviewed by Ian Barwick.
    631e7f6b
tab-complete.c 140 KB