Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Custom Base Typ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 15486 of 16112
Post > Topic >>

Custom Base Type in C

by odnamr@[EMAIL PROTECTED] ("Toby Chavez") May 7, 2008 at 05:06 PM

------=_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&#39;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&#39;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--
 




 9 Posts in Topic:
Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 17:06:40 
Re: Custom Base Type in C
david.t.wilson@[EMAIL PRO  2008-05-07 19:12:56 
Re: Custom Base Type in C
alvherre@[EMAIL PROTECTED  2008-05-07 19:15:10 
Using a composite SQL type in C
heron@[EMAIL PROTECTED]   2008-05-07 17:29:32 
Re: Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 18:02:29 
Re: Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 18:14:46 
Re: Custom Base Type in C
dim@[EMAIL PROTECTED] (D  2008-05-08 14:03:39 
Re: Using a composite SQL type in C
odnamr@[EMAIL PROTECTED]   2008-05-08 11:11:26 
Re: Using a composite SQL type in C
heron@[EMAIL PROTECTED]   2008-05-08 11:20:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:39:13 CDT 2008.