Re: Reducing the overhead of NUMERIC data

From: Mike Rylander <mrylander(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Reducing the overhead of NUMERIC data
Date: 2005-11-02 12:59:45
Message-ID: b918cf3d0511020459y1df1fcc6xf3916a2b7deb3783@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 11/2/05, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On Tue, 2005-11-01 at 18:15 -0500, Tom Lane wrote:
> > Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > > Anybody like to work out a piece of SQL to perform data profiling and
> > > derive the distribution of values with trailing zeroes?
> >
> > Don't forget leading zeroes. And all-zero (we omit digits entirely in
> > that case). I don't think you can claim that zero isn't a common case.
>
> The question is: how common?
>
> For INTEGERs I would accept that many are often zero. For NUMERIC, these
> are seldom exactly zero, IMHO.

Seconded. My INTEGER data does have a quite a few zeros but most of
my NUMERIC columns hold debits and credits. Those are almost never
zero.

>
> This is one of those issues where we need to run tests and take input.
> We cannot decide this sort of thing just by debate alone. So, I'll leave
> this as a less potentially fruitful line of enquiry.
>
> Best Regards, Simon Riggs
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

--
Mike Rylander
mrylander(at)gmail(dot)com
GPLS -- PINES Development
Database Developer
http://open-ils.org

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2005-11-02 13:07:11 PGXS on VPATH?
Previous Message Greg Stark 2005-11-02 12:03:57 Re: slru.c race condition (was Re: TRAP: FailedAssertion("!((itemid)->lp_flags

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2005-11-02 13:05:23 tsearch2 makefile fixes
Previous Message Greg Stark 2005-11-02 12:03:57 Re: slru.c race condition (was Re: TRAP: FailedAssertion("!((itemid)->lp_flags