Unsigned 64 bit integer to numeric

From: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Unsigned 64 bit integer to numeric
Date: 2019-12-04 10:26:59
Message-ID: 20191204102659.g6hy2v7siwd7ppng@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2019-12-04 10:30:17 Re: Simplify passing of configure arguments to pg_config
Previous Message Arthur Zakirov 2019-12-04 09:15:52 Re: pg_upgrade fails with non-standard ACL