| От | Tom Lane |
|---|---|
| Тема | Re: psql auto-completion for multiple where clauses |
| Дата | |
| Msg-id | 18130.1279299998@sss.pgh.pa.us обсуждение |
| Ответ на | Re: psql auto-completion for multiple where clauses ("Greg Sabino Mullane" <greg@turnstep.com>) |
| Список | pgsql-hackers |
"Greg Sabino Mullane" <greg@turnstep.com> writes:
> No: there is only a small number of words that we go back through,
> so the above will not work as we cannot get back to the name of the table
> from the right side of the AND. The way to fix that is to redesign our
> tab-completion system such that it knows about a greater number of words,
> perhaps even the complete statement.
Yeah, tab_complete.c is really a pretty awful kluge. One thing that
might be interesting is to make it use psql's lexer, which I think
wasn't there at all when the completion code was started. But that just
takes care of word-recognition issues, it won't do anything at the
semantic level. I hesitate to think of trying to incorporate the
backend grammar too :-(
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера