Skip site navigation (1) Skip section navigation (2)

Re: Tuple sampling

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Manfred Koizar <mkoi-pg(at)aon(dot)at>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Tuple sampling
Date: 2004-05-24 13:43:42
Message-ID: 10795.1085406222@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Manfred Koizar <mkoi-pg(at)aon(dot)at> writes:
> Performance was not the primary motivation.  I found it confusing to
> have doubles everywhere and not to know whether a variable is declared
> as double, because
>   . we need the fractional part (e.g. a probability)
>   . or it should be able to hold an integral value of more than 32 bits.
> So I just invented my own datatype for huge integers.

Well, if you want to "typedef double TupleCount" as a documentation aid,
I don't object, but let's not do it just locally in analyze.c.  There
are a bunch of other places that do the same thing.

			regards, tom lane

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-05-24 14:43:06
Subject: Re: add build utilities in default install
Previous:From: Neil ConwayDate: 2004-05-24 10:56:34
Subject: updated list rewrite

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group