pgsql: psql: Add completion for \help DROP|ALTER

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: psql: Add completion for \help DROP|ALTER
Date: 2017-03-16 23:01:05
Message-ID: E1coeOH-0001jo-CN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)proxel(dot)se>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d7d77f3825122bde55be9e06f6c4851028b99795

Modified Files
--------------
src/bin/psql/tab-complete.c | 93 ++++++++++++++++++++++++++++++++++++---------
1 file changed, 74 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-03-17 00:30:09 pgsql: Fix grammar.
Previous Message Vik Fearing 2017-03-16 22:44:49 Re: pgsql: Avoid having vacuum set reltuples to 0 on non-empty relations in