Re: contrib Makefiles - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: contrib Makefiles
Date
Msg-id 200208151402.g7FE2p910850@candle.pha.pa.us
Whole thread Raw
In response to Re: contrib Makefiles  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Open 7.3 items
Next
From: Greg Copeland
Date:
Subject: Re: Standard replication interface?