pgsql: Convert psql's tab completion for backslash commands to the new

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Convert psql's tab completion for backslash commands to the new
Date: 2016-01-05 17:00:19
Message-ID: E1aGUy3-0001OX-QK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Convert psql's tab completion for backslash commands to the new style.

This requires adding some more infrastructure to handle both case-sensitive
and case-insensitive matching, as well as the ability to match a prefix of
a previous word. So it ends up being about a wash line-count-wise, but
it's just as big a readability win here as in the SQL tab completion rules.

Michael Paquier, some adjustments by me

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f18010af126f126824e01eec2285e6263d98b3d

Modified Files
--------------
src/bin/psql/tab-complete.c | 333 ++++++++++++++++++++++---------------------
1 file changed, 173 insertions(+), 160 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-01-05 17:35:28 pgsql: Add to_regnamespace() and to_regrole() to the documentation.
Previous Message Tom Lane 2016-01-05 01:08:16 pgsql: In psql's tab completion, change most TailMatches patterns to Ma