EXECUTE tab completion

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема EXECUTE tab completion
Дата
Msg-id 4E80E88B.4040704@proxel.se
обсуждение исходный текст
Ответы Re: EXECUTE tab completion
Список pgsql-hackers
Hi,

Magnus's patch for adding tab completion of views to the TABLE statement
reminded me of a minor annoyance of mine -- that EXECUTE always
completes with "PROCEDURE" as if it would have been part of CREATE
TRIGGER ... EXECUTE even when it is the first word of the line.

Attached is a simple patch which adds completion of prepared statement
names to the EXECUTE statement.

What could perhaps be added is that if you press tab again after
completing the prepared statement name you might want to see a single
"(" appear. Did not add that though since "EXECUTE foo();" is not valid
syntax (while "EXECUTE foo(1);" is) and I did not feel the extra lines
of code to add a query to check if the number of expected parameters is
greater than 0 were worth it.

--
Andreas Karlsson

Вложения

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: psql setenv command
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: psql setenv command