psql: Add completion for \help DROP|ALTER
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 16 Mar 2017 22:54:28 +0000 (18:54 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 16 Mar 2017 22:56:27 +0000 (18:56 -0400)
commitd7d77f3825122bde55be9e06f6c4851028b99795
tree7497962a8ba7854ca6facc897a5cd5b7e7523b84
parent1914c5ea7daaaaba4420f65c991256af5d4a9813
psql: Add completion for \help DROP|ALTER

While \help CREATE would complete usefully, \help DROP or \help ALTER
did not complete anything.

Expand the list of things after CREATE and DROP to cover ALTER as well,
and use that for the ALTER completion.  Also make minor tweaks to that
list.

Also add support for completing \help on multiword commands like CREATE
TEXT SEARCH ...

Author: Andreas Karlsson <andreas@proxel.se>
src/bin/psql/tab-complete.c