Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in - Mailing list pgsql-hackers

From D'Arcy J.M. Cain
Subject Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in
Date
Msg-id 20020820122252.5B5C51C6A@druid.net
Whole thread Raw
In response to Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in  (Rod Taylor <rbt@zort.ca>)
Responses Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in  (Vince Vielhaber <vev@michvhf.com>)
Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in  (Rod Taylor <rbt@zort.ca>)
List pgsql-hackers
On August 19, 2002 11:58 pm, Rod Taylor wrote:
> On Mon, 2002-08-19 at 23:50, Christopher Kings-Lynne wrote:
> The simple fix is to drop the money type entirely as it serves few
> purposes -- but there are some who use it.

As the original creator of the type I probably have the most emotional 
attachment to it but even I am thinking of dropping its use.  I would have 
preferred to fix it (more automatic casts and 64 bit storage as well as the 
fixes in the current thread) but I seem to be alone so it hardly seems worth 
it.  I still think that there is some benefit to being able to do integer 
arithmetic though.  I know that I do a lot of calculations (mostly sums) on 
money and going to numeric is going to be a hit.  No matter how efficient it 
is it can't be as efficient as a cpu register addition.

But maybe I'm wrong and the hit will be negligible.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: regression test failures in CVS HEAD
Next
From: Michael Meskes
Date:
Subject: bison news