Re: Faster NUMERIC implementation - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: Faster NUMERIC implementation
Date
Msg-id 20030320122758.GD4182@feivel.fam-meskes.de
Whole thread Raw
In response to Faster NUMERIC implementation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Faster NUMERIC implementation
List pgsql-hackers
On Wed, Mar 19, 2003 at 10:51:32PM -0500, Tom Lane wrote:
> I've been amusing myself the last several evenings by working on a
> reimplementation of the NUMERIC datatype, along the lines of previous
> discussion (use base-10000 digits instead of base-10 so that the number
> of iterations of the inner loops decreases by a factor of about 4).
> ...

Tom, I do like it since I really believe it will be faster.

But I wonder if we could arrange things so the Numeric stuff wents out
of the backend. As you surely noticed I created a pgtypes lib to make
our special types available to the outside world. So far Numeric is the
only one, but we are working on date (partly finished) and timestamp. I
think it shouldn't be too difficult to make the backend call the
functions inside the dynamic library instead of keeping it inside. That
way we would have to code these functions only once and no double work
is required. 

Of course the lib should then move out of interfaces, but ecpg could
still call it. Any comments?

Michael
-- 
Michael Meskes
Email: Michael@Fam-Meskes.De
ICQ: 179140304
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: Current CVS compile problem
Next
From: Oleg Bartunov
Date:
Subject: Re: string || NULL ambiguity