Christopher Kings-Lynne wrote: > 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??? >
It does if you're not specific. Take a look at dblink.sql.in. All of the dblink functions are in one shared object file. e.g. CREATE OR REPLACE FUNCTION dblink (text,text) RETURNS setof int AS 'MODULE_PATHNAME','dblink' LANGUAGE 'c' WITH (isstrict); CREATE OR REPLACE FUNCTION dblink_tok (int,int) RETURNS text AS 'MODULE_PATHNAME','dblink_tok' LANGUAGE 'c' WITH (isstrict); ... etc. Joe ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]