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

From Dimitri Fontaine
Subject Re: hi,i write a function in postgresql source code, how to register this function?
Date
Msg-id 87mxuuqcbt.fsf@hi-media-techno.com
Whole thread Raw
In response to hi,i write a function in postgresql source code, how to register this function?  (sunpeng <bluevaley@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Jacek Trzmiel
Date:
Subject: Wrong number of empty toast pages
Next
From: Felde Norbert
Date:
Subject: Re: postgres crash SOS