Re: Hacking gram.y Error syntax error at or near "MERGEJOIN"

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: HuangQi <huangqiyx(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hacking gram.y Error syntax error at or near "MERGEJOIN"
Date: 2011-06-02 07:59:00
Message-ID: BANLkTikEg25zVgm40SV-zs01p0G5LeTJ-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

2011/6/2 HuangQi <huangqiyx(at)gmail(dot)com>:
> Yes, I've also added mergejoin to kwlist.h as unreserved_keyword. In order
> to build AST, I also keep a new node struct in planoperators.h and a new
> node tag inside nodes.h.
>

then recheck alphabet order of keywords, else recheck bison rules.

Pavel

> On 2 June 2011 15:49, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>>
>> Hello
>>
>> you should to add new keywords to
>> postgresql/src/include/parser/kwlist.h (depends on pg version)
>>
>> attention - keywords must be in alphabet order
>>
>> Regards
>>
>> Pavel Stehule
>>
>> 2011/6/2 HuangQi <huangqiyx(at)gmail(dot)com>:
>> > Hi,
>> >     I'm doing a hacking project which hacks the gram.y file and some
>> > other
>> > so that postgres can execute some query plan language to run a
>> > particular
>> > plan. I did some modifications and try run it. It compiled and installed
>> > successfully. But when I was trying to run a MergeJoin operation with
>> > keyword MERGEJOIN, it says "ERROR: syntax error at or near 'MERGEJOIN'".
>> > It
>> > seems postgres didn't recognize this keyword. Is it caused by any error
>> > inside gram.y? Or how can I trace this error?
>> >
>> > --
>> > Best Regards
>> > Huang Qi Victor
>> >
>
>
>
> --
> Best Regards
> Huang Qi Victor
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Golub 2011-06-02 08:24:18 Re: [HACKERS] PQdeleteTuple function in libpq
Previous Message HuangQi 2011-06-02 07:54:17 Re: Hacking gram.y Error syntax error at or near "MERGEJOIN"