pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carlos Mennens <carlos.mennens@gmail.com>
Cc: PostgreSQL (SQL) <pgsql-sql@postgresql.org>
Subject: Re: Type Ahead Issue
Date: Wed, 07 Mar 2012 15:37:55 -0500
Message-ID: <18560.1331152675@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAQLLO4=zdqtxGMbPWKyWHoi-=t+CY1sf_72gzkU80Rq-Pr1xg@mail.gmail.com>
References: <CAAQLLO4=zdqtxGMbPWKyWHoi-=t+CY1sf_72gzkU80Rq-Pr1xg@mail.gmail.com>

Carlos Mennens <carlos.mennens@gmail.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



view thread (2+ messages)

Message-ID: <18560.1331152675@sss.pgh.pa.us>
Permalink:  ../18560.1331152675@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18560.1331152675@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, carlos.mennens@gmail.com
  Subject: Re: Type Ahead Issue
  In-Reply-To: <18560.1331152675@sss.pgh.pa.us>

* 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