Re: C-language example of using/returning numeric

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C-language example of using/returning numeric
Date: 2002-09-16 13:15:36
Message-ID: 25971.1032182136@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Mascari <mascarm(at)mascari(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jochem van Dieten 2002-09-16 13:24:12 Re: sum(if command
Previous Message Tim Knowles 2002-09-16 12:52:19 Buffer Analysis