pgsql: Teach psql to do tab completion for names of psql variables.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach psql to do tab completion for names of psql variables.
Date: 2010-10-10 22:43:16
Message-ID: E1P54bs-00055w-Hc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Teach psql to do tab completion for names of psql variables.

Completion is supported in the context of \set and when interpolating
a variable value using :foo etc.

In passing, fix some places in tab-complete.c that weren't following
project style for comment formatting.

Pavel Stehule, reviewed by Itagaki Takahiro

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=b48b9cb3a46d80401b122fd10780e8c623983a26

Modified Files
--------------
src/bin/psql/tab-complete.c | 197 +++++++++++++++++++++++++++++--------------
1 files changed, 134 insertions(+), 63 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Hiroshi Saito 2010-10-10 23:21:07 psqlodbc - psqlodbc: add gssapi to extra list.
Previous Message Tom Lane 2010-10-10 17:46:15 pgsql: Support triggers on views.