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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4f18010af126f126824e01eec2285e6263d98b3d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-01-05T17:00:13Z
Releases: 9.6.0
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

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +173 −160