Re: [HACKERS] Definition of function base_yylex in version 8.1.4

2007-10-27 Thread Tom Lane
sayali k [EMAIL PROTECTED] writes:
   I am having a project in Postgres where I need to modify some code in the 
 parser section of the code base. During some analysis I came across a 
 function called base_yylex which is called in the function yylex in the 
 file parser.c. However, I was unable to find the definition of this function 
 due to which I am stuck completely.

You need to read the flex manual... (hint: it's generated from scan.l)

regards, tom lane

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
   choose an index scan if your joining column's datatypes do not
   match


Re: [HACKERS] Definition of function base_yylex in version 8.1.4

2007-10-27 Thread sayali k
I am trying to implement materialized views using trigger which will be used to 
maintain the views which will be generated. For this I am required to add a new 
command for the creation of a materialized view, which is already done by 
modifying the grammar in the gram.y file.
  However, I need to know where exactly the function base_yylex is defined. 
This function seems to return the next token from the command. 
   
  Any help is appreciated,
  

Ashish Mehra [EMAIL PROTECTED] wrote:
Hi Sayali,
   
  What project is this that you are working on, any details that you provide 
will help
   
  Regards
  Ashish

 
  On 10/27/07, sayali k [EMAIL PROTECTED] wrote: Hi all,
  I am having a project in Postgres where I need to modify some code in the 
parser section of the code base. During some analysis I came across a function 
called base_yylex which is called in the function yylex in the file parser.c. 
However, I was unable to find the definition of this function due to which I am 
stuck completely.
  Looking forward to some help from experts.
  Thanks in advance


  Best regards,
  Sayali
   
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 
  Happiness is nothing more than a good health and a bad memory
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 

-
  For ideas on reducing your carbon footprint visit Yahoo! For Good this month. 
  
  





Best regards,
  Sayali
   
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 
  Happiness is nothing more than a good health and a bad memory
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 

   
-
For email that puts you in control, choose Yahoo! Mail.

Re: [HACKERS] Definition of function base_yylex in version 8.1.4

2007-10-27 Thread sayali k
Thanks a lot for these details Tom, I will checkout the scan.l file
  Best regards,
  Sayali

Tom Lane [EMAIL PROTECTED] wrote:
  sayali k writes:
 I am having a project in Postgres where I need to modify some code in the 
 parser section of the code base. During some analysis I came across a 
 function called base_yylex which is called in the function yylex in the 
 file parser.c. However, I was unable to find the definition of this function 
 due to which I am stuck completely.

You need to read the flex manual... (hint: it's generated from scan.l)

regards, tom lane

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match



Best regards,
  Sayali
   
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 
  Happiness is nothing more than a good health and a bad memory
  == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == ~~~ == 

   
-
 For ideas on reducing your carbon footprint visit Yahoo! For Good this month.