------=_Part_11830_5663111.1210201600097
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I have been trying to created a custom base type in C to use as a state
transition variable for some aggregate functions. By following the
do***entation I haven't been able to do much but crash postgres :) I can
compile and run the complex example from the tutorial just fine so I guess
that means I am compiling correctly.
My custom type needs to have one biginteger and one text value... pretty
straight forward. I guess my first question is if there are any examples
out
there that do something similar. I have looked extensively through the
contrib directory and can't find anything very helpful. If not, could
someone help me understand what my c struct would look like and what
values
I need for INTERNALLENGTH, ALIGNMENT, STORAGE, etc in the CREATE TYPE
command?
Thanks a ton,
Toby
------=_Part_11830_5663111.1210201600097
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I have been trying to created a custom base type in C to use as a state
transition variable for some aggregate functions. By following the
do***entation I haven't been able to do much but crash postgres :) I
can compile and run the complex example from the tutorial just fine so I
guess that means I am compiling correctly.<br>
<br>My custom type needs to have one biginteger and one text value...
pretty straight forward. I guess my first question is if there are any
examples out there that do something similar. I have looked extensively
through the contrib directory and can't find anything very helpful. If
not, could someone help me understand what my c struct would look like and
what values I need for INTERNALLENGTH, ALIGNMENT, STORAGE, etc in the
CREATE TYPE command?<br>
<br>Thanks a ton, <br><br>Toby<br>
------=_Part_11830_5663111.1210201600097--


|