Thread: CreateFunctionStmt struct

CreateFunctionStmt struct

From
Sibtay Abbas
Date:
hello,

typedef struct CreateFunctionStmt
{NodeTag        type;bool        replace;        List       *funcname;        List       *parameters;        TypeName
*returnType;       List       *options;        List       *withClause;        
 
} CreateFunctionStmt;

this the the CreateFunctionStmt struct found in the
postgresql implementation.

Can anyone tell me which field here is used to
indicated the language of the function, in which it is
written.

like when we create a function we mention $$language
bla in the end.

so is there any field in this structure which
represents its language?



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: CreateFunctionStmt struct

From
Alvaro Herrera
Date:
On Thu, Dec 23, 2004 at 11:57:09AM -0800, Sibtay Abbas wrote:

Hi,

> Can anyone tell me which field here is used to
> indicated the language of the function, in which it is
> written.
> 
> like when we create a function we mention $$language
> bla in the end.

It's one of the options (options is a List of DefElems).  See the
grammar (src/backend/parser/gram.y).

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"El sabio habla porque tiene algo que decir;
el tonto, porque tiene que decir algo" (Platon).