Yes, you can optionally specify the symbol to find in the *.so file as
part of the CREATE FUNCTION command.
---------------------------------------------------------------------------
Tom Lane wrote:
> "Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> > I guess my question would be that currently fulltextindex generates SQL like
> > this:
>
> > create function fti() returns opaque as
> > '$libdir/fti'
> > language 'C';
>
> > So it references the fti.so, but where does it say what function to actually
> > run in fti.so? Or is it assumed in C functions that the function to call in
> > the shared object is the same as the name of the function???
>
> That's the assumption unless you specify differently. Time to reread
> the CREATE FUNCTION man page ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square,
Pennsylvania19073