Re: psql tab completion for DO blocks

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql tab completion for DO blocks
Date: 2010-01-02 21:50:56
Message-ID: 20100102215056.GB3149@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 02, 2010 at 04:22:38PM -0500, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > Please find enclosed a patch which adds tab completion for DO
> > blocks.
>
> Seems (a) rather pointless and

I don't find it so.

> (b) wrong in detail.

How? That it can't look back past the code block is reflects
limitations in lexx and yacc, a problem which, to put it mildly, is
much larger than I can address in a single patch.

It does produce correct results for front-loading the language in
which the DO block is to be created.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-01-02 21:53:45 Re: psql tab completion for DO blocks
Previous Message Tom Lane 2010-01-02 21:22:38 Re: psql tab completion for DO blocks