Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
f2ef4701
Commit
f2ef4701
authored
22 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Update discussion of floating-point problems in regression tests.
parent
bea47921
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/regress.sgml
+9
-30
9 additions, 30 deletions
doc/src/sgml/regress.sgml
with
9 additions
and
30 deletions
doc/src/sgml/regress.sgml
+
9
−
30
View file @
f2ef4701
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/regress.sgml,v 1.
29
2002/1
0/12 16:31:55 petere
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/regress.sgml,v 1.
30
2002/1
1/08 20:26:12 tgl
Exp $ -->
<chapter id="regress">
<title id="regress-title">Regression Tests</title>
...
...
@@ -264,14 +264,19 @@ PGTZ='PST8PDT7,M04.01.0,M10.05.03'; export PGTZ
Some of the tests involve computing 64-bit (<type>double
precision</type>) numbers from table columns. Differences in
results involving mathematical functions of <type>double
precision</type> columns have been observed. The float8 and
geometry tests are particularly prone to small differences
across
platforms, or even with different compiler optimization options.
precision</type> columns have been observed. The
<literal>
float8
</>
and
<literal>
geometry
</>
tests are particularly prone to small differences
across
platforms, or even with different compiler optimization options.
Human eyeball comparison is needed to determine the real
significance of these differences which are usually 10 places to
the right of the decimal point.
</para>
<para>
Some systems display minus zero as <literal>-0</>, while others
just show <literal>0</>.
</para>
<para>
Some systems signal errors from <function>pow()</function> and
<function>exp()</function> differently from the mechanism
...
...
@@ -279,32 +284,6 @@ PGTZ='PST8PDT7,M04.01.0,M10.05.03'; export PGTZ
code.
</para>
</sect2>
<sect2>
<title>Polygon differences</title>
<para>
Several of the tests involve operations on geographic data about
the Oakland/Berkeley, California street map. The map data is expressed as
polygons whose vertices are represented as pairs of <type>double
precision</type> numbers (decimal latitude and
longitude). Initially, some tables are created and loaded with
geographic data, then some views are created that join two
tables using the polygon intersection operator
(<literal>##</literal>), then a select is done on the view.
</para>
<para>
When comparing the results from different platforms, differences
occur in the 2nd or 3rd place to the right of the decimal
point. The SQL statements where these problems occur are the
following:
<programlisting>
SELECT * from street;
SELECT * from iexit;
</programlisting>
</para>
</sect2>
<sect2>
<title>Row ordering differences</title>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment