Chapman Flack <chap(at)anastigmatix(dot)net> writes:
> On 05/31/17 01:26, Tom Lane wrote:
>> Hm. I think it would be better to use DatumGetInt32 here. Arguably,
>> direct use of GET_4_BYTES and its siblings should only appear in
>> DatumGetFoo macros.
> Like so?
Looks promising offhand, but I'm too tired to check in detail right now.
regards, tom lane