Re: Custom Base Type in C - Mailing list pgsql-general

From Toby Chavez
Subject Re: Custom Base Type in C
Date
Msg-id a2987f9e0805071702h6ceba1ccga928ab8df9f42ef4@mail.gmail.com
Whole thread Raw
In response to Re: Custom Base Type in C  ("David Wilson" <david.t.wilson@gmail.com>)
List 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.t.wilson@gmail.com

pgsql-general by date:

Previous
From: "Dan \"Heron\" Myers"
Date:
Subject: Using a composite SQL type in C
Next
From: "Toby Chavez"
Date:
Subject: Re: Custom Base Type in C