Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aDeZO-0004dS-QB for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Dec 2015 20:39:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aDeZO-0006Kw-Cb for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Dec 2015 20:39:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aDeZO-0006Kq-3C for pgsql-bugs@postgresql.org; Mon, 28 Dec 2015 20:39:06 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aDeZI-0004Tx-Hz for pgsql-bugs@postgresql.org; Mon, 28 Dec 2015 20:39:05 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.53.52]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 9DDE0401355; Mon, 28 Dec 2015 12:38:52 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id AFBC9D0F; Mon, 28 Dec 2015 17:38:50 -0300 (CLT) Date: Mon, 28 Dec 2015 17:38:50 -0300 From: Alvaro Herrera To: John McKown Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #13832: Syntax errors are extremely unfriendly Message-ID: <20151228203850.GQ58441@alvherre.pgsql> References: <20151224104428.2673.7170@wrigleys.postgresql.org> <1419.1450973473@sss.pgh.pa.us> <24516.1451333022@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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