Search Postgresql Archives

Re: Query inside a C-Function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/19/2010 12:26 PM, Enzo Cappa wrote:
> Hello!
> 
> I have to make a c function for determining if some point its inside a
> set of elliptical geometries (I'm talking about a shared library, used
> like a function in the queries ). The geometries are defined in a table,
> so the function should iterate over a set of them. One option could be
> pass as a param to the funcition an array of HeapTupleHeader (if its
> posible), and other could be make a query inside the function for
> obtaining the geometries.
> 
> I can't find the way of doing none of them, someone knows if it's
> posible? And, of course, information and links are needed too.

See the SPI functions:

http://www.postgresql.org/docs/8.4/interactive/spi.html

There are examples of use in the contrib/tablefunc code among others.

HTH,

Joe



Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux