From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chapman Flack <chap@anastigmatix.net>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Joe Nelson <joe@begriffs.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: POC: rational number type (fractions)
Date: Mon, 18 May 2020 18:14:36 -0400
Message-ID: <20552.1589840076@sss.pgh.pa.us> (raw)
In-Reply-To: <5EC3031C.6020105@anastigmatix.net>
References: <20200208042554.GE42864@begriffs.com>
<0e2422da-953b-6b96-1900-f67c7e5e3307@2ndquadrant.com>
<5EC3031C.6020105@anastigmatix.net>
Chapman Flack <chap@anastigmatix.net> writes:
> On 05/18/20 17:33, Peter Eisentraut wrote:
>> The numeric type already stores rational numbers. How is this different?
>> What's the use?
> Won't ever quite represent, say, 1/3, no matter how big you let it get.
There surely are use-cases for true rational arithmetic, but I'm
dubious that it belongs in core Postgres. I don't think that enough
of our users would want it to justify expending core-project maintenance
effort on it. So I'd be happier to see this as an out-of-core extension.
(That'd also ease dealing with the prospect of having more than one
variant, as was mentioned upthread.)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, chap@anastigmatix.net, peter.eisentraut@2ndquadrant.com, joe@begriffs.com
Subject: Re: POC: rational number type (fractions)
In-Reply-To: <20552.1589840076@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox