Re: hi, i write a function in postgresql source code, how to register this function?

Dimitri Fontaine <dfontaine@hi-media.com>

From: Dimitri Fontaine <dfontaine@hi-media.com>
To: sunpeng <bluevaley@gmail.com>
Cc: pgsql-general@postgresql.org
Date: 2010-06-17T08:43:02Z
Lists: pgsql-general
sunpeng <bluevaley@gmail.com> writes:

> hi,i write a function in postgresql source code, how to register this function?

See src/include/catalog/pg_proc.h

But you should *really* consider making it a loadable module. That's the
way it makes sense for any code you want to add in the server unless
you're preparing a patch for PostgreSQL itself, or you're doing a new
Index Access Method that you want crash safe.

Regards,
-- 
dim