Re: Psql meta-command conninfo+

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: Psql meta-command conninfo+
Дата
Msg-id gdgfqn2kuxp6w635bzz35me45a5zsswdcmqciuylui5dxxgmmd@par2aijoq4jw
обсуждение исходный текст
Ответ на Re: Psql meta-command conninfo+  (Jim Jones <jim.jones@uni-muenster.de>)
Ответы RE: Psql meta-command conninfo+  (Maiquel Grassi <grassi@hotmail.com.br>)
Re: Psql meta-command conninfo+  (Jim Jones <jim.jones@uni-muenster.de>)
Список pgsql-hackers
On 2024-02-08 20:37 +0100, Jim Jones wrote:
> One thing I just noticed. The psql autocomplete feature does not suggest
> the new + option of \conninfo. For instance, when typing "\connin[TAB]"
> it automatically autocompletes to "\conninfo ". I guess it should also
> be included in this patch.

Modifiers such as + or S in \dS are not covered by autocompletion.
src/bin/psql/tab-complete.c only specifies backslash commands in their
basic form (without modifiers).

(\dS<TAB> actually autocompletes to \ds to my surprise)

> I can do a more thorough review of the code when you add the
> documentation and tests to the patch.

I noticed that the pattern parameter in listConnectionInformation is
unused.  exec_command_conninfo scans the pattern but \conninfo should
not accept any argument.  So the pattern can be removed entirely.

-- 
Erik



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

Предыдущее
От: Mats Kindahl
Дата:
Сообщение: Re: glibc qsort() vulnerability
Следующее
От: Tom Lane
Дата:
Сообщение: Re: glibc qsort() vulnerability