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

Re: Type Ahead Issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: "PostgreSQL (SQL)" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Type Ahead Issue
Date: 2012-03-07 20:37:55
Message-ID: 18560.1331152675@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-sql
Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> writes:
> Am I missing something here? When the command is on one line, auto
> complete works fine but when I break it up as show above in the 2nd
> example, it acts like 'COLUMN' isn't even a valid option but if I
> manually type the word 'COLUMN' and finish the command, it works.

Yeah, the autocompletion logic can only "see" the current line of input,
so in your second example it has no idea that this is an ALTER TABLE
command.  My recollection is that there's no very nice way around that
given the limitations of the readline callback interface, though maybe
if somebody got ambitious they could improve it.

			regards, tom lane

In response to

pgsql-sql by date

Next:From: Igor NeymanDate: 2012-03-07 20:38:57
Subject: Re: map row in one table with random row in another table
Previous:From: Carlos MennensDate: 2012-03-07 18:42:16
Subject: Type Ahead Issue

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