Alessandro Baretta wrote:
> My problem is that I need to know how the arrays are represented in
> memory, and how they are passed to my function. Also, I'll need to
> define an abstract type for the execution plan of the dft alorithm--yes,
> fftw uses execution plans just like PostgreSQL :-) --and I will need to
> store them in the database. This seems a little tricky to me. As I
> stated earlier, I have already learned SQL and PL/pgSQL functions, but I
> still have to learn how to create a C function. Anyway, I'm working on
> it, and I hope to be able to share my code with you guys, for possible
> inclusion in the distribution.
Also see contrib/array, contrib/dblink, and contrib/intarray (and
probably others under contrib) for user function examples which handle
arrays. And be sure to see: http://www.postgresql.org/idocs/index.php?xfunc-c.html
for general information on user C language functions.
Joe