Re: Arrays and FFTW - Mailing list pgsql-hackers

From Joe Conway
Subject Re: Arrays and FFTW
Date
Msg-id 3D3900CD.5030609@joeconway.com
Whole thread Raw
In response to Arrays and FFTW  (Alessandro Baretta <alex@baretta.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCH] Win32 native fixes after SSL updates (+more)
Next
From: Alessandro Baretta
Date:
Subject: Re: Arrays and FFTW