Re: [GENERAL] Extending SQL C-language multidimension arrays

2012-06-09 Thread Tom Lane
Chris Schnaufer writes: > SELECT getone(ARRAY[[10.1,11.2,12.3],[20.1,21.2,22.3]], POINT(1.0,1.0), 1.5, > 1.0, 1.0); > SELECT > getone(ARRAY[[10.1,11.2,12.3],[20.1,21.2,22.3],[31.1,33.2,35.3],[44.1,45.2,46.3]], > POINT(1.0,1.0), 1.5, 1.0, 1.0); > To my way of thinking about these arrays, I shou

[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