Re: Tab completion for "create unlogged" a bit too lax?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Tab completion for "create unlogged" a bit too lax?
Дата
Msg-id YSWNIfMvRI+jbI9A@paquier.xyz
обсуждение исходный текст
Ответ на Re: Tab completion for "create unlogged" a bit too lax?  ("Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>)
Список pgsql-hackers
On Tue, Aug 24, 2021 at 12:04:28PM +0000, Daniel Westermann (DWE) wrote:
> Hm, I think tab completion should only give choices for operations
> that are supposed to work. Anyway, thanks for pointing me to the
> commit, that makes it more clear why it is that way.

FWIW, my position on that is that there is no point to recommend
grammars that will return errors, and many code paths of
tab-complete.c list only their options available ignoring ones that
fail.  And we are talking about a one-line change as all the code
paths of CREATE UNLOGGED only have code to handle the case of TABLE.
--
Michael

Вложения

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

Предыдущее
От: "Bossart, Nathan"
Дата:
Сообщение: Re: prevent immature WAL streaming
Следующее
От: "Euler Taveira"
Дата:
Сообщение: Re: row filtering for logical replication