pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: John McKown <john.archie.mckown@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13832: Syntax errors are extremely unfriendly
Date: Mon, 28 Dec 2015 17:38:50 -0300
Message-ID: <20151228203850.GQ58441@alvherre.pgsql> (raw)
In-Reply-To: <CAAJSdjgG_YYxBoYV=zbXxvinE-tDWJUhOw+H+FQVJctZ-Tuu1A@mail.gmail.com>
References: <20151224104428.2673.7170@wrigleys.postgresql.org>
	<1419.1450973473@sss.pgh.pa.us>
	<CAKuVd4AafYiCafieV03AEguXKoiFGEzk0Z5zpccw1+A3+0hChg@mail.gmail.com>
	<24516.1451333022@sss.pgh.pa.us>
	<CAAJSdjgG_YYxBoYV=zbXxvinE-tDWJUhOw+H+FQVJctZ-Tuu1A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)

Message-ID: <20151228203850.GQ58441@alvherre.pgsql>
Permalink:  ../20151228203850.GQ58441@alvherre.pgsql/
Also on:    postgresql.org/message-id/20151228203850.GQ58441@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, john.archie.mckown@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #13832: Syntax errors are extremely unfriendly
  In-Reply-To: <20151228203850.GQ58441@alvherre.pgsql>
  References: <20151224104428.2673.7170@wrigleys.postgresql.org> <1419.1450973473@sss.pgh.pa.us> <CAKuVd4AafYiCafieV03AEguXKoiFGEzk0Z5zpccw1+A3+0hChg@mail.gmail.com> <24516.1451333022@sss.pgh.pa.us> <CAAJSdjgG_YYxBoYV=zbXxvinE-tDWJUhOw+H+FQVJctZ-Tuu1A@mail.gmail.com> <20151228203850.GQ58441@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox