Re: int8 version of NUMERIC?

From: Adam Witney <awitney(at)sghms(dot)ac(dot)uk>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: int8 version of NUMERIC?
Date: 2004-01-13 13:37:32
Message-ID: BC29A51C.2B7C5%awitney@sghms.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/1/04 3:28 pm, "Bruno Wolff III" <bruno(at)wolff(dot)to> wrote:

> On Sun, Jan 11, 2004 at 21:53:09 +0700,
> David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com> wrote:
>>
>> My concern is that, the PostgreSQL docs says NUMERIC & DECIMAL is very
>> slow compared to INT/BIGINT. Should I worry about that?
>
> Most likely disk IO not cpu will be your bottleneck and the extra overhead
> of numeric relative to int or float won't be a big deal.
>
> Numeric is stored usingh based 10000 (at least in 7.4.x) and hence isn't
> that horrible performance-wise (as compared to say storing it as an ascii
> string).

Out of interest, where does the performance of storing at as TEXT suffer
here... Reading or writing or both?

Thanks

Adam

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Teran 2004-01-13 13:41:45 Any real known bugs about wrong selects?
Previous Message Anton.Nikiforov 2004-01-13 13:05:50 Re: insertion with trigger failed unexpectedly