Re: Why my manualy constructed raw parser tree produce failed to execute? - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Why my manualy constructed raw parser tree produce failed to execute?
Date
Msg-id 20100528.085518.69388576.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Why my manualy constructed raw parser tree produce failed to execute?  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Why my manualy constructed raw parser tree produce failed to execute?
List pgsql-hackers
> > Now to the question, why my manualy constructed list was failed to
> > execute? I was pretty sure that my list node was identical with yacc.
> 
> Because you have a bug in your code.

You can debug your code by comparing your hand made tree with the
original tree by using equal(). Search #ifdef COPY_PARSE_PLAN_TREES in
postgres.c to see how to use it. Good luck.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: pg_trgm
Next
From: Tom Lane
Date:
Subject: Re: pg_trgm