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

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: sunpeng <bluevaley(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: hi, i write a function in postgresql source code, how to register this function?
Date: 2010-06-17 08:43:02
Message-ID: 87mxuuqcbt.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

sunpeng <bluevaley(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Felde Norbert 2010-06-17 08:47:56 Re: postgres crash SOS
Previous Message Sergey Konoplev 2010-06-17 07:11:00 Re: Question about indexes on tables with inherited children