From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | contrib/cube |
Date: | 2002-08-18 19:51:13 |
Message-ID: | 20020818195113.GA10123@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I changed my version of contrib/cube to use double precision for most
things (the gist cost functions) in the package. This provides more
accuracy, but the exponents may still be limited or the gist cost
functions may supply bogus results.
I changed the output string allocation to use the dimension to figure out
how much space to request. I also use '%.16g' instead of '%g' to print
out elements.
I added four functions to make the individual elements and dimension accessible
(for making views in a different coordinate system) and a function that
returns whether or not a box is a point.
I haven't updated the regression test to test the new functions or account
for some output differences that come from increasing the precision in the
output format.
This is good enough for what I want. If these changes are something that
might get added to contrib/cube I can fix up the regression test and
make the changes available. If this isn't something of enough general
interest to worry about, then I won't.
From | Date | Subject | |
---|---|---|---|
Next Message | GB Clark | 2002-08-18 20:21:46 | Re: Triggers - with a little change |
Previous Message | Bruno Wolff III | 2002-08-18 17:36:49 | Re: cube_contains and indexing |