Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3bdadd04
Commit
3bdadd04
authored
Jan 02, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document tuple ordering differences as a possible cause of
regression test 'failures'.
parent
1b8a219e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
2 deletions
+60
-2
doc/src/sgml/regress.sgml
doc/src/sgml/regress.sgml
+35
-2
src/test/regress/README
src/test/regress/README
+25
-0
No files found.
doc/src/sgml/regress.sgml
View file @
3bdadd04
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/regress.sgml,v 1.1
5 2000/12/22 18:57:50 petere
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/regress.sgml,v 1.1
6 2001/01/02 05:56:02 tgl
Exp $ -->
<chapter id="regress">
<title id="regress-title">Regression Tests</title>
...
...
@@ -248,7 +248,40 @@ SELECT * from iexit;
</programlisting>
</para>
</sect2>
<sect2>
<title>Tuple ordering differences</title>
<para>
You might see differences in which the same tuples are output in a
different order than what appears in the expected file. In most cases
this is not, strictly speaking, a bug. Most of the regression test
scripts are not so pedantic as to use an ORDER BY for every single
SELECT, and so their result tuple orderings are not well-defined
according to the letter of the SQL spec. In practice, since we are
looking at the same queries being executed on the same data by the same
software, we usually get the same result ordering on all platforms, and
so the lack of ORDER BY isn't a problem. Some queries do exhibit
cross-platform ordering differences, however.
</para>
<para>
Therefore, if you see an ordering difference, it's not something to
worry about (unless the query does have an ORDER BY that your result
is violating). But please report it anyway, so that we can add an
ORDER BY to that particular query and thereby eliminate the bogus
<quote>failure</quote> in future releases.
</para>
<para>
You might wonder why we don't ORDER all the regress test SELECTs to
get rid of this issue once and for all. The reason is that that would
make the regression tests less useful, not more, since they'd tend
to exercise query plan types that produce ordered results to the
exclusion of those that don't.
</para>
</sect2>
<sect2>
<title>The <quote>random</quote> test</title>
...
...
src/test/regress/README
View file @
3bdadd04
...
...
@@ -166,6 +166,31 @@ statements where these problems occur are the following:
SELECT * from street;
SELECT * from iexit;
Tuple ordering differences
You might see differences in which the same tuples are output in a
different order than what appears in the expected file. In most cases
this is not, strictly speaking, a bug. Most of the regression test
scripts are not so pedantic as to use an ORDER BY for every single
SELECT, and so their result tuple orderings are not well-defined
according to the letter of the SQL spec. In practice, since we are
looking at the same queries being executed on the same data by the same
software, we usually get the same result ordering on all platforms, and
so the lack of ORDER BY isn't a problem. Some queries do exhibit
cross-platform ordering differences, however.
Therefore, if you see an ordering difference, it's not something to
worry about (unless the query does have an ORDER BY that your result
is violating). But please report it anyway, so that we can add an
ORDER BY to that particular query and thereby eliminate the bogus
"failure" in future releases.
You might wonder why we don't ORDER all the regress test SELECTs to
get rid of this issue once and for all. The reason is that that would
make the regression tests less useful, not more, since they'd tend
to exercise query plan types that produce ordered results to the
exclusion of those that don't.
The "random" test
There is at least one case in the "random" test script that is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment