psql: tab completions for 'WITH'

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема psql: tab completions for 'WITH'
Дата
Msg-id CAK3UJREwvjYd3=6_xTm3H7H96an24iBp=bCPpaz5W8pdbSgYzQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: psql: tab completions for 'WITH'  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Hi all,

I noticed psql's tab-completion for 'WITH' is a bit overeager. If you
try to tab-complete commands like:
  ALTER ROLE jsmith WITH [TAB]
  COPY tbl FROM 'filename' WITH [TAB]

you'll get 'RECURSIVE' unhelpfully filled in. I think 'RECURSIVE'
should only be suggested if 'WITH' is the first and only word of the
line.

On a related note, I found it annoying that after fixing the above
problem, trying:
    ALTER ROLE jsmith WITH [TAB]
    CREATE ROLE jsmith WITH [TAB]

didn't suggest any tab-completions -- it only works if you leave off
the 'WITH' noise word, which I happen to use.

Attached are fixes for both of these gripes. I'll add to the next CF.

Josh

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: checkpoint patches
Следующее
От: Huchev
Дата:
Сообщение: Re: Faster compression, again