Re: [HACKERS] [patch] psql tab completion for ALTER DEFAULTPRIVILEGES

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [HACKERS] [patch] psql tab completion for ALTER DEFAULTPRIVILEGES
Дата
Msg-id 20161222222622.GU18360@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: [patch] psql tab completion for ALTER DEFAULT PRIVILEGES  (Gilles Darold <gilles.darold@dalibo.com>)
Список pgsql-hackers
Gilles,

* Gilles Darold (gilles.darold@dalibo.com) wrote:
> Le 20/11/2016 à 15:46, Gilles Darold a écrit :
> > When tab-completing after ALTER DEFAULT PRIVILEGES ... GRANT|REVOKE,
> > currently psql injects completion from the GRANT|REVOKE order, rather
> > than the one expected.
> >
> > A patch is attached. It adds the right completion to GRANT|REVOKE after
> > ALTER DEFAULT PRIVILEGES and after FOR ROLE|USER + IN SCHEMA.
>
> Added to next commitfest. To explain more this patch, the completion of
> SQL command:

I've started looking at this.  First off, it looks pretty good and seems
like it's actually a bug fix which should be back-patched since the
current behavior in released branches is also wrong.  There's been some
changes in this area, so it might not be practical to go all the way
back, will have to see once I start getting into it.

One minor nit is that multi-line comments should be of the form:

/** ...*/

The tab-completion code does do some like this:

/* ... */   /* ... */

Which is probably alright, but you've add some like:

/* ...     .... */

Which we really don't do.  I'll clean that up and might do a bit of
word-smithing on the comments also, so no need for a new patch, but
thought I'd mention it for future patches.

Thanks!

Stephen

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Indirect indexes
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] pg_background contrib module proposal