Add tab-completion for \unset and valid setting values of psql variables.
authorFujii Masao <fujii@postgresql.org>
Tue, 12 Aug 2014 02:57:39 +0000 (11:57 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 12 Aug 2014 02:57:39 +0000 (11:57 +0900)
commite15c4ab5fb0de2cab393ed4be2136e1832746412
tree4b585f80a852a5d5137a7120e981dd45d252f1cd
parent7d835ff4db19c515171d6c8de772536c55600753
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.
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/tab-complete.c