Re: Arrays and FFTW

From: Alessandro Baretta <alex(at)baretta(dot)com>
To: PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Arrays and FFTW
Date: 2002-07-20 08:30:30
Message-ID: 3D391FA6.2020902@baretta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway wrote:
>
> 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

I read that already, but it does not mention how arrays are
passed to a C function. I need some examples. Now I have
some places to look for. Now, I'll download the source and
take a look at it. Hopefully, it will not be too difficult
to figure out how arrays are passed to C functions. The docs
*seem* to imply that I will get a blob of memory where the
first 4 bytes are the size_t of the array, and the rest is
the array itself. However, this is not clearly stated, so I
could have misunderstood this point. PostgreSQL is a great
thing, but the documentation is a little too tight in a few
spots. I managed to wade through most of it--I'd hate to get
an RTFM from you guys--but I wish it were a little more
explicative.

Thanks to everybody for the kind help. Good work. I'll get
back to mine momentarily.

Alex

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alessandro Baretta 2002-07-20 14:04:14 Re: Arrays and FFTW
Previous Message Joe Conway 2002-07-20 06:18:53 Re: Arrays and FFTW