Re: [patch] psql tab completion for grant execute

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [patch] psql tab completion for grant execute
Дата
Msg-id CA+TgmoZKq4KFAtOR2LJv0jXXOUuVOY7hRTS1V3ttfn3AsX55+w@mail.gmail.com
обсуждение исходный текст
Ответ на [patch] psql tab completion for grant execute  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: [patch] psql tab completion for grant execute  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-hackers
On Mon, Aug 17, 2015 at 5:07 PM, Daniel Verite <daniel@manitou-mail.org> wrote:
> When tab-completing after GRANT EXECUTE, currently psql injects
> "PROCEDURE", rather than the expected "ON".
>
> The code for completing with "ON" is there, but it's not reached due to
> falling earlier into another branch, one that handles CREATE TRIGGER.
>
> A trivial patch is attached. It adds the condition that if EXECUTE is
> preceded by GRANT itself preceded by nothing, then that completion
> with PROCEDURE is skipped.

Thanks, I committed this.  I don't think we usually back-patch tab
completion fixes, but I back-patched this one to 9.5 anyway, so that
it gets out into the wild a little sooner.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Proposal: Implement failover on libpq connect level.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: allowing wal_level change at run time