[GENERAL] Composite Types, arrays, and functions

2012-06-18 Thread Chris Schnaufer
I am getting an "invalid input syntax for type double precision" error when I return an array as part of a composite type from my C-language function. I can re-create this situation with just a type and a function. My type is declared as follows: CREATE TYPE my_grid AS (min_x double precision,

[GENERAL] Extending SQL C-language multidimension arrays

2012-06-09 Thread Chris Schnaufer
I am using Postgrsql 9.0 and writing a C-language extension. The extension takes an n-dimension array and performs a lookup on that array. Right now I'm stuck on determining the dimensions of the array data passed in. No matter what I pass in as the array parameter (the first parameter) I'm gett