Skip site navigation (1) Skip section navigation (2)

Re: Tab completion issue in 9.0 beta1

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Tab completion issue in 9.0 beta1
Date: 2010-05-18 14:48:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Excerpts from Devrim GÜNDÜZ's message of mar may 18 05:17:00 -0400 2010:
> I just noticed this:
> bodhi=# INSERT INTO release SAVEPOINT 
> When there is a table called "release", even if I press V (for VALUES),
> psql replaces it with SAVEPOINT.

uh.  Yeah, you can also try "insert into commit" and it offers
completion with PREPARED, TRANSACTION and WORK.

I think those rules are lacking a check that they are anchored at the
start of the string.

This completion stuff is rather primitive.  I wonder if this could be
rewritten with a bison parser or something ... maybe even hook it on the
main parser, like the ecpg parser does.

In response to

pgsql-bugs by date

Next:From: Robert HaasDate: 2010-05-18 15:35:00
Subject: Re: Error in ODBC
Previous:From: Devrim GÜNDÜZDate: 2010-05-18 09:17:00
Subject: Tab completion issue in 9.0 beta1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group