Commit 59b3b801 authored by Tom Lane's avatar Tom Lane

As long as we're forcing an ORDER BY in these four join queries, we had

better make sure the sort order is totally specified; else we get burnt
by platform-specific behavior of qsort() with equal keys.  Per buildfarm
results.
parent 80906168
......@@ -1718,7 +1718,7 @@ SELECT '' AS "xxx", *
--
SELECT '' AS "xxx", *
FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
xxx | i | j | t | k
-----+---+---+-------+----
| 0 | | zero |
......@@ -1738,7 +1738,7 @@ SELECT '' AS "xxx", *
SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
xxx | i | j | t | k
-----+---+---+-------+----
| 0 | | zero |
......@@ -1788,7 +1788,7 @@ SELECT '' AS "xxx", *
SELECT '' AS "xxx", *
FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
xxx | i | j | t | k
-----+---+---+-------+----
| 0 | | zero |
......@@ -1810,7 +1810,7 @@ SELECT '' AS "xxx", *
SELECT '' AS "xxx", *
FROM J1_TBL FULL JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
xxx | i | j | t | k
-----+---+---+-------+----
| 0 | | zero |
......
......@@ -167,11 +167,11 @@ SELECT '' AS "xxx", *
SELECT '' AS "xxx", *
FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
SELECT '' AS "xxx", *
FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i);
......@@ -181,11 +181,11 @@ SELECT '' AS "xxx", *
SELECT '' AS "xxx", *
FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
SELECT '' AS "xxx", *
FROM J1_TBL FULL JOIN J2_TBL USING (i)
ORDER BY i, k;
ORDER BY i, k, t;
SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (k = 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment