access numeric data in module - Mailing list pgsql-hackers

From Ed Behn
Subject access numeric data in module
Date
Msg-id CAJBL5DP2emt+WPeCo+YY_ogsGt90-_kRU3weS5YJLQTfNZr72Q@mail.gmail.com
Whole thread Raw
Responses Re: access numeric data in module
List pgsql-hackers
I'm the maintainer of the PL/Haskell language extension. (https://github.com/ed-o-saurus/PLHaskell/)

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?

                  -Ed

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: broken build - FC 41
Next
From: Hunaid Sohail
Date:
Subject: Re: [PATCH] Add roman support for to_number function