CreateFunction Statement - Mailing list pgsql-hackers

From Praveen M
Subject CreateFunction Statement
Date
Msg-id CAP2CR44v2oMPAYwfHK_64q86vmztGW-mXFTFk-V5Jjwq3=VB-w@mail.gmail.com
Whole thread Raw
Responses Re: CreateFunction Statement  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Hi All,

I am trying to get the schema name of the create function call from the parse tree. When I look at the structure of the CreateFunctionStmt , I do not see the schemaname information . Can you please help me to understand how to extract the schema name for the function.

typedef struct CreateFunctionStmt
{
NodeTag type;
bool replace; /* T => replace if already exists */
List   *funcname; /* qualified name of function to create */
List   *parameters; /* a list of FunctionParameter */
TypeName   *returnType; /* the return type */
List   *options; /* a list of DefElem */
List   *withClause; /* a list of DefElem */
} CreateFunctionStmt;


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: count_nulls(VARIADIC "any")
Next
From: Pavel Stehule
Date:
Subject: Re: CreateFunction Statement