Re: Implementing an expanded object in C

2019-02-06 Thread Michel Pelletier
Thanks Andrew, sorry for my late reply it took me a while to get time to analyze the issue. You are of course correct, I had confusion around the create type statement, but the good news is, I have figured out the final ins and outs of creating an expanded type, and my matrix type can now be used

Re: Implementing an expanded object in C

2019-01-27 Thread Andrew Gierth
> "Michel" == Michel Pelletier writes: Michel> Replying to my own problem here, I guess this was a situation Michel> where explaining it in detail revealed the problem to me. By Michel> specifying my type is 'passedbyvalue' That cannot possibly be appropriate. Michel> CREATE TYPE matrix

Re: Implementing an expanded object in C

2019-01-27 Thread Michel Pelletier
Replying to my own problem here, I guess this was a situation where explaining it in detail revealed the problem to me. By specifying my type is 'passedbyvalue' and 'alignment = double' it now works! CREATE TYPE matrix ( internallength = 8, input = matrix_in, output = matrix_out,

Implementing an expanded object in C

2019-01-27 Thread Michel Pelletier
Hello, Apologies in advance for the long question. I've made a lot of progress on my GraphBLAS extension and getting close to having most of the API usefully exposed to postgres, but I'm been struggling with an issue related to when i switched to using an expanded representation of matrix types.