Add tab-completion for \unset and valid setting values of psql variables.

Fujii Masao <fujii@postgresql.org>

Commit: e15c4ab5fb0de2cab393ed4be2136e1832746412
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-08-12T02:57:39Z
Releases: 9.5.0
Add tab-completion for \unset and valid setting values of psql variables.

This commit also changes tab-completion for \set so that it displays
all the special variables like COMP_KEYWORD_CASE. Previously it displayed
only variables having the set values. Which was not user-friendly for
those who want to set the unset variables.

This commit also changes tab-completion for :variable so that only the
variables having the set values are displayed. Previously even unset
variables were displayed.

Pavel Stehule, modified by me.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +6 −3
src/bin/psql/tab-complete.c modified +121 −18