Unsigned 64 bit integer to numeric - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Unsigned 64 bit integer to numeric
Date
Msg-id 20191204102659.g6hy2v7siwd7ppng@localhost
Whole thread Raw
Responses Re: Unsigned 64 bit integer to numeric  (didier <did447@gmail.com>)
Re: Unsigned 64 bit integer to numeric  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
Hi,

Probably a simple question, but I don't see a simple answer so far. In
one extension I want to convert uint64 into a numeric to put it
eventually into a jsonb object. As far as I see in numeric.c there are
functions only for signed int64. Is there a way to achive this with
uint64 (without duplicating significant part of numeric implementation
in the extension)?



pgsql-hackers by date:

Previous
From: Arthur Zakirov
Date:
Subject: Re: pg_upgrade fails with non-standard ACL
Next
From: Peter Eisentraut
Date:
Subject: Re: Simplify passing of configure arguments to pg_config