Clean up psql:
authorBruce Momjian <[email protected]>
Fri, 15 Nov 2002 03:07:52 +0000 (03:07 +0000)
committerBruce Momjian <[email protected]>
Fri, 15 Nov 2002 03:07:52 +0000 (03:07 +0000)
commit5b7eb4dd45359e040cd7175f1b3cfc5ea28ad138
tree8e71ce19615c29e023b8e7446a21c37935c88578
parent728fa75edc03bea0c01026c3244f6f2a73c984dc
Clean up psql:

Add simple ALTER DATABASE, ALTER TRIGGER, CHECK POINT, CREATE
CONVERSION, CREATE DOMAIN, CREATE LANGUAGE, DEALLOCATE, DROP CONVERSION,
DROP DOMAIN, DROP LANGUAGE, EXECUTE, PREPARE

Complete CAST in CREATE CAST and DROP CAST but doesn't suggest what
should follow.

Add many more SET / SHOW variables to the list.  Taken from SHOW ALL
output.

Complete a case sensitive search to allow \dD, \dd, \dS, \ds, \h, \H to
complete properly.  But there are no matches, then try a case
insensitive search to allow case conversion.  Add all missing help
options.

\Q<tab>    -> \q
\dD<tab>   -> \dD
\dd<tab>   -> \dd
\D<tab><tab><tab> -> \d (with listing of \d? commands)
sel<tab>   -> SELECT

Rod Taylor
src/bin/psql/tab-complete.c