Re: Making tab-complete.c easier to maintain - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Making tab-complete.c easier to maintain
Date
Msg-id CAEepm=1ns0rbo+xun_j6_PwDT6zmEPuNggy=Vaie-3peF2C44Q@mail.gmail.com
Whole thread Raw
In response to Re: Making tab-complete.c easier to maintain  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Making tab-complete.c easier to maintain  (Thomas Munro <thomas.munro@enterprisedb.com>)
Re: Making tab-complete.c easier to maintain  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
On Mon, Oct 19, 2015 at 4:58 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> On Sun, Oct 18, 2015 at 5:31 PM, Thomas Munro
> <thomas.munro@enterprisedb.com> wrote:
>>
>> Hi
>>
>> Here is a new version merging recent changes.
>
>
> For reasons I do not understand, "SET work_mem " does not complete with
> "TO".
>
> But if I change:
>
> else if (Matches2("SET", MatchAny))
>
> to:
>
> else if (TailMatches2("SET", MatchAny))
>
> Then it does.

Thanks for taking a look at this!  The word count returned by
get_previous_words was incorrect.  Here is a corrected version.

--
Thomas Munro
http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Making tab-complete.c easier to maintain
Next
From: Amit Langote
Date:
Subject: Minor comment fix