Re: Custom Base Type in C

From: "Toby Chavez" <odnamr(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom Base Type in C
Date: 2008-05-08 00:02:29
Message-ID: a2987f9e0805071702h6ceba1ccga928ab8df9f42ef4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)t(dot)wilson(at)gmail(dot)com
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Toby Chavez 2008-05-08 00:14:46 Re: Custom Base Type in C
Previous Message Dan "Heron" Myers 2008-05-07 23:29:32 Using a composite SQL type in C