Re: [HACKERS] contrib Makefiles

2002-08-15 Thread Bruce Momjian
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 [EMAIL PROTECTED] writes: I guess my question would be that

[HACKERS] contrib Makefiles

2002-08-14 Thread Christopher Kings-Lynne
Hi guys, The fulltextindex Makefile looks like this: subdir = contrib/fulltextindex top_builddir = ../.. include $(top_builddir)/src/Makefile.global MODULE_big = fti OBJS = list.o chtbl.o fti.o DATA_built = fti.sql DOCS = README.fti SCRIPTS = fti.pl include

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Peter Eisentraut
Christopher Kings-Lynne writes: How can I modify it to build two different C files into two different .so's? That is next to impossible in the current setup. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Christopher Kings-Lynne
-Lynne Cc: Hackers Subject: Re: [HACKERS] contrib Makefiles Christopher Kings-Lynne writes: How can I modify it to build two different C files into two different .so's? That is next to impossible in the current setup. -- Peter Eisentraut [EMAIL PROTECTED

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Tom Lane
Christopher Kings-Lynne [EMAIL PROTECTED] writes: Is it possible to have two different functions in the .so that can be made into two different postgres funtions, both referencing the same .so? Certainly, what's the problem there? Offhand I can't think of any contrib modules that only define

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Christopher Kings-Lynne
Christopher Kings-Lynne [EMAIL PROTECTED] writes: Is it possible to have two different functions in the .so that can be made into two different postgres funtions, both referencing the same .so? Certainly, what's the problem there? Offhand I can't think of any contrib modules that only

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Joe Conway
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

Re: [HACKERS] contrib Makefiles

2002-08-14 Thread Tom Lane
Christopher Kings-Lynne [EMAIL PROTECTED] 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