Re: access numeric data in module - Mailing list pgsql-hackers

From Tom Lane
Subject Re: access numeric data in module
Date
Msg-id 3142462.1725891243@sss.pgh.pa.us
Whole thread Raw
In response to access numeric data in module  (Ed Behn <ed@behn.us>)
Responses Re: access numeric data in module
List pgsql-hackers
Ed Behn <ed@behn.us> writes:
> I want to be able to have a function received and/or return numeric data.
> However, I'm having trouble getting data from Datums and building Datums to
> return. numeric.h does not contain the macros to do this. They are in
> numeric.c.

> Is there a way to access the values in the numeric structures? If not,
> would a PR to move macros to numeric.h be welcome in the next commitfest?

It's intentional that that stuff is not exposed, so no.

What actual functionality do you need that numeric.h doesn't expose?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Add has_large_object_privilege function
Next
From: Jim Jones
Date:
Subject: Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row