Re: hi,i write a function in postgresql source code, how to register this function? - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: hi,i write a function in postgresql source code, how to register this function?
Date
Msg-id 4C19188B.5090707@iol.ie
Whole thread Raw
In response to hi,i write a function in postgresql source code, how to register this function?  (sunpeng <bluevaley@gmail.com>)
Responses Re: hi,i write a function in postgresql source code, how to register this function?  (sunpeng <bluevaley@gmail.com>)
List pgsql-general
On 16/06/2010 17:42, sunpeng wrote:
> hi,i write a function in postgresql source code, how to register this
> function?
> it is not an aggregate function.
> i don't use 34.3"User-Defined Functions" described in
> http://www.postgresql.org/docs/8.4/interactive/xfunc.html, i just write
> it in postgresql sourcecode, how to register this function to let final
> user use? Should i only add one tuple in pg_process table? how to add ?

What do you mean by "PostgreSQL source code"? - SQL? pl/pgsql?

Generally, you just execute the following SQL command:

    create or replace function my_function(.....) returns [return type]
    as
    $$
       [function code here]
    $$
    language [whatever - usually sql or plpgsql] ;


....or am I missing something in your question?

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with triggers
Next
From: Yeb Havinga
Date:
Subject: Re: consequent PQsendQueryPrepared() failed: another command is already in progress