[HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
Hi all, I have try to understand how parser work. So far the raw parser in PostgreSQL will produce that called raw parser tree and the raw parser tree will be passed to analyzer, right? I have modified PostgreSQL, so the program wont call function raw_parser -a function container that make by

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Robert Haas
On Thu, May 27, 2010 at 1:58 PM, Mohammad Heykal Abdillah heykal.abdil...@gmail.com wrote: 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. -- Robert Haas EnterpriseDB:

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
On Kam, 2010-05-27 at 15:02 -0400, Robert Haas wrote: On Thu, May 27, 2010 at 1:58 PM, Mohammad Heykal Abdillah heykal.abdil...@gmail.com wrote: 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.

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Tatsuo Ishii
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

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Robert Haas
On Thu, May 27, 2010 at 6:56 PM, Mohammad Heykal Abdillah heykal.abdil...@gmail.com wrote: On Kam, 2010-05-27 at 15:02 -0400, Robert Haas wrote: On Thu, May 27, 2010 at 1:58 PM, Mohammad Heykal Abdillah heykal.abdil...@gmail.com wrote: Now to the question, why my manualy constructed list was

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
On Jum, 2010-05-28 at 08:55 +0900, Tatsuo Ishii wrote: 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