CreateFunctionStmt struct

Started by Sibtay Abbasabout 21 years ago2 messages
#1Sibtay Abbas
sibtay_abbas@yahoo.com

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

#2Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Sibtay Abbas (#1)
Re: CreateFunctionStmt struct

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).