Re: Custom Base Type in C

Поиск
Список
Период
Сортировка
От Toby Chavez
Тема Re: Custom Base Type in C
Дата
Msg-id a2987f9e0805071702h6ceba1ccga928ab8df9f42ef4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Custom Base Type in C  ("David Wilson" <david.t.wilson@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Dan \"Heron\" Myers"
Дата:
Сообщение: Using a composite SQL type in C
Следующее
От: "Toby Chavez"
Дата:
Сообщение: Re: Custom Base Type in C