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 > Re: Custom Base...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 15486 of 16301
Post > Topic >>

Re: Custom Base Type in C

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

------=_Part_12028_21676012.1210204949405
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I need to do the aggregate functions in c not pg/plsql so transition type
needs to be accessible in c. If there is a way to do that without
explicitly
defining the type in c then that would be perfect.

>
> Is there any particular reason why this needs to be done in C? Why not
> just create the type normally as per:
>
> CREATE TYPE my_transition_type AS (a bigint, b text);
>
> And then create your aggregate function using that type?
>
> I can't help you with the C stuff, but you may be making far more work
> for yourself than you really need.
>
> --
> - David T. Wilson
> david.t.wilson@[EMAIL PROTECTED]
>

------=_Part_12028_21676012.1210204949405
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I need to do the aggregate functions in c not pg/plsql so transition type
needs to be accessible in c. If there is a way to do that without
explicitly defining the type in c then that would be perfect.<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px
0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">&nbsp;</div>Is there any particular reason why this
needs to be done in C? Why not<br>just create the type normally as
per:<br><br>CREATE TYPE my_transition_type AS (a bigint, b
text);<br><br>And then create your aggregate function using that type?<br>
<br>I can&#39;t help you with the C stuff, but you may be making far more
work<br>for yourself than you really need.<br><font
color="#888888"><br>--<br>- David T. Wilson<br><a
href="mailto:david.t.wilson@[EMAIL PROTECTED]
">david.t.wilson@[EMAIL PROTECTED]
><br>
</font></blockquote></div><br>

------=_Part_12028_21676012.1210204949405--
 




 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
tan12V112 Wed Aug 20 8:25:49 CDT 2008.