Re: C-language example of using/returning numeric

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C-language example of using/returning numeric
Дата
Msg-id 25971.1032182136@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C-language example of using/returning numeric  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> Does anyone happen to have a server-side C-language example of
> using the Version-1 calling conventions with the NUMERIC data
> type?

utils/adt/numeric.c is full of examples --- just add the
PG_FUNCTION_INFO_V1() macro and you have a perfectly good external
function.

> Are there any helper functions available to the C-language
> server-side developer wrt numeric?

They are all in numeric.c ... unfortunately, they're mostly static.

What exactly do you need to do?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Jochem van Dieten
Дата:
Сообщение: Re: sum(if command
Следующее
От: Tino Wildenhain
Дата:
Сообщение: problems to restore database with custom datatypes (e.g. txtidx)