Tab completion of function arguments not working in all cases

Поиск
Список
Период
Сортировка
Искать
От
Dean Rasheed
Тема
Tab completion of function arguments not working in all cases
Дата
Msg-id
CAEZATCX-xaOn-6FeDYq+fhFMPpoLnDJiAmQposzw=MVsHsn41Q@mail.gmail.com
Список
Дерево обсуждения
Tab completion of function arguments not working in all cases Dean Rasheed <dean.a.rasheed@gmail.com>
Re: Tab completion of function arguments not working in all cases Josh Kupershmidt <schmiddy@gmail.com>
Re: Tab completion of function arguments not working in all cases Dean Rasheed <dean.a.rasheed@gmail.com>
Hi,

I noticed this while testing 9.2, but it seems to go back to at least
8.3. Tab completion of function arguments doesn't work if the function
is schema-qualified or double-quoted. So for example,

  DROP FUNCTION my_function ( 

completes the functions arguments, but

  DROP FUNCTION my_schema.my_function ( 

doesn't offer any completions, and nor does

  DROP FUNCTION "my function" ( 


The attached patch fixes these problems by introducing a new macro
COMPLETE_WITH_ARG, similar to the existing COMPLETE_WITH_ATTR, which
seems to be the nearest analogous code that covers all the edge cases.

Regards,
Dean
В списке pgsql-bugs по дате отправления
От: Robert Haas
Дата:
От: Tom Lane
Дата:
FAQ