pgsql: Add tab-completion for \unset and valid setting values of psql v

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add tab-completion for \unset and valid setting values of psql v
Date: 2014-08-12 03:15:44
Message-ID: E1XH2Yq-0002MT-Qa@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 9 ++-
src/bin/psql/tab-complete.c | 139 ++++++++++++++++++++++++++++++++++------
2 files changed, 127 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2014-08-12 08:08:42 pgsql: Change first call of ProcessConfigFile so as to process only dat
Previous Message Fujii Masao 2014-08-11 14:38:13 pgsql: Fix failure to follow the directions when "init" fork was added.