Re: Tab completion for view triggers in psql - Mailing list pgsql-hackers

From David Fetter
Subject Re: Tab completion for view triggers in psql
Date
Msg-id 20101214154528.GA1467@fetter.org
Whole thread Raw
In response to Re: Tab completion for view triggers in psql  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Tab completion for view triggers in psql  (Greg Smith <greg@2ndquadrant.com>)
List pgsql-hackers
On Mon, Dec 13, 2010 at 10:48:54PM -0500, Robert Haas wrote:
> On Tue, Nov 30, 2010 at 9:15 AM, David Fetter <david@fetter.org> wrote:
> >> Patch attached. If you think my changes are ok,
> >> please change the patch status to "Ready for Committer".
> >
> > Done :)
> 
> I have committed part of this patch.

Great!

> The rest is attached.  I don't know that there's any problem with
> it, but I ran out of steam.

The issue with not committing it is that having a two-word condition
(INSTEAD OF vs. BEFORE or AFTER) means that thing that know about
preceding BEFORE or AFTER now have to look one word further backward,
at least as tab completion works now.

That we're in the position of having prevN_wd for N = 1..5 as the
current code exists is a sign that we need to refactor the whole
thing, as you've suggested before.

I'll work up a design and prototype for this by this weekend.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.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


pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Transaction-scope advisory locks
Next
From: Itagaki Takahiro
Date:
Subject: Re: SQL/MED - core functionality