]> granicus.if.org Git - postgresql/commit
Improved tab completion for views with triggers.
authorRobert Haas <rhaas@postgresql.org>
Tue, 14 Dec 2010 03:37:55 +0000 (22:37 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 14 Dec 2010 03:46:55 +0000 (22:46 -0500)
commit9878e295dc937c664367875dc001b7503df057f1
tree24bb126ff1b7d3b69f47d842ac43036225b2d950
parentf9224c8ec2f6dcfed6daa3f94597b870ec31c8d8
Improved tab completion for views with triggers.

Allow INSERT INTO, UPDATE, and DELETE FROM to be completed with
either the name of a table (as before) or the name of a view with
an appropriate INSTEAD OF rule.

Along the way, allow CREATE TRIGGER to be completed with INSTEAD OF,
as well as BEFORE and AFTER.

David Fetter, reviewed by Itagaki Takahiro
src/bin/psql/tab-complete.c