Re: BUG #13832: Syntax errors are extremely unfriendly

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #13832: Syntax errors are extremely unfriendly
Дата
Msg-id 20151228203850.GQ58441@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: BUG #13832: Syntax errors are extremely unfriendly  (John McKown <john.archie.mckown@gmail.com>)
Список pgsql-bugs
John McKown wrote:

> ​I don't know what you've looked at for the auto-complete, but I ran across
> this example which uses GNU readline:
> http://cc.byexamples.com/2008/06/16/gnu-readline-implement-custom-auto-complete/
> ​

We have that already:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/psql/tab-complete.c;hb=HEAD
Tom's point was to get Bison to cooperate so that we can auto-generate
that file instead of having to program the completions ourselves -- and
that the problem of getting Bison to give reasonable syntax error
messages is very similar to that of Bison providing possible
completions.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: BUG #13832: Syntax errors are extremely unfriendly
Следующее
От: alain.laporte12345@gmail.com
Дата:
Сообщение: BUG #13837: Files in pg_committs not deleted