Commit d2ccc707 authored by Tom Lane's avatar Tom Lane

Original coding of 'returning' regression test inadvertently chose a

nonunique join value, leading to plan-choice-dependent results ... and
it seems some platforms will choose a different plan.  Tweak the test
so that it has well-defined results.  Per report from Olivier Prenant.
parent 12cf0fdf
...@@ -152,11 +152,11 @@ SELECT * FROM foochild; ...@@ -152,11 +152,11 @@ SELECT * FROM foochild;
UPDATE foo SET f3 = f3*2 UPDATE foo SET f3 = f3*2
FROM int8_tbl i FROM int8_tbl i
WHERE foo.f1 = i.q1 WHERE foo.f1 = i.q2
RETURNING *; RETURNING *;
f1 | f2 | f3 | f4 | q1 | q2 f1 | f2 | f3 | f4 | q1 | q2
-----+-------+------+------+-----+----- -----+-------+------+------+------------------+-----
123 | child | 1998 | 1098 | 123 | 456 123 | child | 1998 | 1098 | 4567890123456789 | 123
(1 row) (1 row)
SELECT * FROM foo; SELECT * FROM foo;
...@@ -174,11 +174,11 @@ SELECT * FROM foochild; ...@@ -174,11 +174,11 @@ SELECT * FROM foochild;
DELETE FROM foo DELETE FROM foo
USING int8_tbl i USING int8_tbl i
WHERE foo.f1 = i.q1 WHERE foo.f1 = i.q2
RETURNING *; RETURNING *;
f1 | f2 | f3 | f4 | q1 | q2 f1 | f2 | f3 | f4 | q1 | q2
-----+-------+------+------+-----+----- -----+-------+------+------+------------------+-----
123 | child | 1998 | 1098 | 123 | 456 123 | child | 1998 | 1098 | 4567890123456789 | 123
(1 row) (1 row)
SELECT * FROM foo; SELECT * FROM foo;
......
...@@ -70,7 +70,7 @@ SELECT * FROM foochild; ...@@ -70,7 +70,7 @@ SELECT * FROM foochild;
UPDATE foo SET f3 = f3*2 UPDATE foo SET f3 = f3*2
FROM int8_tbl i FROM int8_tbl i
WHERE foo.f1 = i.q1 WHERE foo.f1 = i.q2
RETURNING *; RETURNING *;
SELECT * FROM foo; SELECT * FROM foo;
...@@ -78,7 +78,7 @@ SELECT * FROM foochild; ...@@ -78,7 +78,7 @@ SELECT * FROM foochild;
DELETE FROM foo DELETE FROM foo
USING int8_tbl i USING int8_tbl i
WHERE foo.f1 = i.q1 WHERE foo.f1 = i.q2
RETURNING *; RETURNING *;
SELECT * FROM foo; SELECT * FROM foo;
......
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