diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out index 78b0d89685..fdb6ceac99 100644 --- a/src/test/regress/expected/join.out +++ b/src/test/regress/expected/join.out @@ -1717,7 +1717,8 @@ SELECT '' AS "xxx", * -- Note that OUTER is a noise word -- SELECT '' AS "xxx", * - FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i); + FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i) + ORDER BY i; xxx | i | j | t | k -----+---+---+-------+---- | 0 | | zero | @@ -1736,7 +1737,8 @@ SELECT '' AS "xxx", * (13 rows) SELECT '' AS "xxx", * - FROM J1_TBL LEFT JOIN J2_TBL USING (i); + FROM J1_TBL LEFT JOIN J2_TBL USING (i) + ORDER BY i; xxx | i | j | t | k -----+---+---+-------+---- | 0 | | zero | @@ -1785,7 +1787,8 @@ SELECT '' AS "xxx", * (9 rows) SELECT '' AS "xxx", * - FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i); + FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i) + ORDER BY i; xxx | i | j | t | k -----+---+---+-------+---- | 0 | | zero | @@ -1799,14 +1802,15 @@ SELECT '' AS "xxx", * | 6 | 6 | six | | 7 | 7 | seven | | 8 | 8 | eight | + | | | | 0 | | | null | | | 0 | zero | | | | | - | | | | 0 (15 rows) SELECT '' AS "xxx", * - FROM J1_TBL FULL JOIN J2_TBL USING (i); + FROM J1_TBL FULL JOIN J2_TBL USING (i) + ORDER BY i; xxx | i | j | t | k -----+---+---+-------+---- | 0 | | zero | @@ -1820,10 +1824,10 @@ SELECT '' AS "xxx", * | 6 | 6 | six | | 7 | 7 | seven | | 8 | 8 | eight | + | | | | 0 | | | null | | | 0 | zero | | | | | - | | | | 0 (15 rows) SELECT '' AS "xxx", * diff --git a/src/test/regress/sql/join.sql b/src/test/regress/sql/join.sql index 5baf7fd3cf..a4df5c04ae 100644 --- a/src/test/regress/sql/join.sql +++ b/src/test/regress/sql/join.sql @@ -166,10 +166,12 @@ SELECT '' AS "xxx", * -- SELECT '' AS "xxx", * - FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i); + FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i) + ORDER BY i; SELECT '' AS "xxx", * - FROM J1_TBL LEFT JOIN J2_TBL USING (i); + FROM J1_TBL LEFT JOIN J2_TBL USING (i) + ORDER BY i; SELECT '' AS "xxx", * FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i); @@ -178,10 +180,12 @@ SELECT '' AS "xxx", * FROM J1_TBL RIGHT JOIN J2_TBL USING (i); SELECT '' AS "xxx", * - FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i); + FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i) + ORDER BY i; SELECT '' AS "xxx", * - FROM J1_TBL FULL JOIN J2_TBL USING (i); + FROM J1_TBL FULL JOIN J2_TBL USING (i) + ORDER BY i; SELECT '' AS "xxx", * FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (k = 1);