Re: Faster NUMERIC implementation

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Faster NUMERIC implementation
Date: 2003-03-20 03:54:28
Message-ID: 200303200354.h2K3sS906980@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Sounds great!

---------------------------------------------------------------------------

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).
>
> It's not ready to commit yet, but I've got it passing the regression
> tests, and I find that it runs the 'numeric' test about a factor of five
> faster than CVS tip; so it seems worth doing. A couple questions for
> the group:
>
> 1. Has anyone got a problem with changing the on-disk representation of
> NUMERIC for 7.4? The only objection I can think of is that it'd prevent
> "pg_upgrade" from working ... but we don't have pg_upgrade capability
> right now anyway, and I've not heard that anyone is planning to make it
> happen for 7.4.
>
> 2. The numeric regression test probably isn't a good benchmark for this,
> since it spends most of its time pushing around numerics with hundreds of
> digits. I doubt that's representative of common usage. Can anyone
> offer a more real-world benchmark test?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-03-20 03:55:45 Re: A bad behavior under autocommit off mode
Previous Message Tom Lane 2003-03-20 03:54:14 Re: Nested transactions: low level stuff