| From: | Joe Conway <mail(at)joeconway(dot)com> |
|---|---|
| To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: contrib Makefiles |
| Date: | 2002-08-15 05:26:23 |
| Message-ID: | 3D5B3B7F.3030703@joeconway.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-08-15 05:30:22 | Re: contrib Makefiles |
| Previous Message | Christopher Kings-Lynne | 2002-08-15 05:21:21 | Re: contrib Makefiles |