Teach psql to do tab completion for names of psql variables.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Oct 2010 22:42:35 +0000 (18:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Oct 2010 22:42:35 +0000 (18:42 -0400)
commitb48b9cb3a46d80401b122fd10780e8c623983a26
tree094787db635f8b5c7f738977fb1f3292f0cecb4a
parent2ec993a7cbdd8e251817ac6bbc9a704ce8346f73
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
src/bin/psql/tab-complete.c