Обсуждение: Definition of function base_yylex in version 8.1.4

Поиск
Список
Период
Сортировка

Definition of function base_yylex in version 8.1.4

От
sayali k
Дата:
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.

Re: Definition of function base_yylex in version 8.1.4

От
Tom Lane
Дата:
sayali k <sayali_s_kulkarni@yahoo.co.in> writes:
>   I am having a project in Postgres where I need to modify some code in the parser section of the code base. During
someanalysis 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


Re: Definition of function base_yylex in version 8.1.4

От
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 <mehraak@gmail.com> 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 <sayali_s_kulkarni@yahoo.co.in> 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: Definition of function base_yylex in version 8.1.4

От
sayali k
Дата:
Thanks a lot for these details Tom, I will checkout the scan.l file
Best regards,
Sayali

Tom Lane <tgl@sss.pgh.pa.us> 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.