Re: psql SET/RESET/SHOW tab completion

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql SET/RESET/SHOW tab completion
Date: 2005-08-13 14:34:43
Message-ID: 200508131434.j7DEYhF13517@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Fuhr wrote:
> Would anybody object to a patch to update psql's tab completion for
> SET/RESET/SHOW to include everything that SHOW shows for a superuser?
>
> I count about 65 variables that SHOW shows that are missing from
> pgsql_variables in tab-complete.c. Does the list intentionally
> omit certain variables? The comment mentions that the list "should
> match USERSET and possibly SUSET," but I'm thinking it would be
> useful to include everything SHOWable. In any case, a few USERSET
> variables like check_function_bodies and escape_string_warning are
> missing, so I'd like to add at least those.

Makes sense. We were thinking mostly of SET when we made the list, but
SHOW would be used in a lot of cases we don't handle now. Ideally we
could have that list auto-generated somehow.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Fuhr 2005-08-13 15:01:45 Re: [HACKERS] ECPG ignores SAVEPOINT if first statement of a transaction
Previous Message Tom Lane 2005-08-13 14:33:55 Re: psql SET/RESET/SHOW tab completion