Re: POC: rational number type (fractions) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: POC: rational number type (fractions)
Date
Msg-id 0e2422da-953b-6b96-1900-f67c7e5e3307@2ndquadrant.com
Whole thread Raw
In response to POC: rational number type (fractions)  (Joe Nelson <joe@begriffs.com>)
Responses Re: POC: rational number type (fractions)
List pgsql-hackers
On 2020-02-08 05:25, Joe Nelson wrote:
> Hi hackers, attached is a proof of concept patch adding a new base type
> called "rational" to represent fractions. It includes arithmetic,
> simplification, conversion to/from float, finding intermediates with a
> stern-brocot tree, custom aggregates, and btree/hash indices.

The numeric type already stores rational numbers.  How is this 
different?  What's the use?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: Missing grammar production for WITH TIES
Next
From: Peter Eisentraut
Date:
Subject: Re: PostgresSQL project