Re: GRANT USAGE ON SEQUENCE missing from psql command completion

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: GRANT USAGE ON SEQUENCE missing from psql command completion
Дата
Msg-id CAEepm=0SpZc9cPMvhszeAu0D8xcXrnj4=t=u6JT0ZGAw3pwJAA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: GRANT USAGE ON SEQUENCE missing from psql command completion  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-bugs
On Fri, Oct 2, 2015 at 7:48 AM, Josh Berkus <josh@agliodbs.com> wrote:
> On 10/01/2015 07:40 AM, Fujii Masao wrote:
>> On Thu, Oct 1, 2015 at 2:03 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
>>> On Tue, Sep 29, 2015 at 12:59 PM, Thomas Munro
>>> <thomas.munro@enterprisedb.com> wrote:
>>>>
>>>> On Wed, Sep 30, 2015 at 5:59 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
>>>>> Since this commit, "grant update on foobar to " will tab complete to add
>>>>> an
>>>>> extra "TO", rather than with a list of roles.
>>>>
>>>> Oops, thanks.  Here is a patch to fix that by moving the branch that
>>>> matches "GRANT/REVOKE * ON * *" after the branch that matches
>>>> "GRANT/REVOKE ... TO/FROM".
>>>>
>>>
>>> Looks good to me, thanks.
>>
>> Applied. Thanks!
>
> Wow, I had no idea this was going to be such a difficult fix ...

Well, a 3 line patch for the specific problem you reported was posted
straight away.

The rest of this thread got carried away filling out a bunch of other
GRANT/REVOKE completions!  And there are probably more things to do
(for example WITH GRANT OPTION).

FWIW I am hoping to make it a bit less cumbersome to maintain the
completion code in the next CF:
https://commitfest.postgresql.org/7/375/

--
Thomas Munro
http://www.enterprisedb.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #13656: table inheritance, pg_dump emits same constraint for all inheritors causing errors
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #13656: table inheritance, pg_dump emits same constraint for all inheritors causing errors