Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in

From: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
To: Rod Taylor <rbt(at)zort(dot)ca>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in
Date: 2002-08-20 12:22:52
Message-ID: 20020820122252.5B5C51C6A@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at){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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2002-08-20 12:25:47 bison news
Previous Message Rod Taylor 2002-08-20 12:05:45 Re: regression test failures in CVS HEAD