aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-01-08 15:00:42 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2024-01-08 15:00:42 +0200
commitbea18b1c949145ba2ca79d4765dba3cc9494a480 (patch)
tree0ad016a871ac1f4f55778dc07ce1ff101c5bb250
parent9034a2d5123498104ef1e515c0b56d70d98d0ce2 (diff)
downloadpostgresql-bea18b1c949145ba2ca79d4765dba3cc9494a480.tar.gz
postgresql-bea18b1c949145ba2ca79d4765dba3cc9494a480.zip
Strengthen tests for 5ef34a8fc3
The test query in 5ef34a8fc3 is running over the empty emp1 table giving the same (empty) return both with and without the fix. Add one row to that table to make not just the test query plan, but also the test query result different. Reported-by: Richard Guo Bug: #18261 Discussion: https://postgr.es/m/CAMbWs49igjcszLgicb4D1N21_5iNDoxheJ7KFmAcs_z%3DLx6jhg%40mail.gmail.com
-rw-r--r--src/test/regress/expected/join.out1
-rw-r--r--src/test/regress/sql/join.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out
index 063396ab522..faad882a033 100644
--- a/src/test/regress/expected/join.out
+++ b/src/test/regress/expected/join.out
@@ -6881,6 +6881,7 @@ WHERE t1.id = emp1.id RETURNING emp1.id, emp1.code;
(3 rows)
-- Check that SJE does not mistakenly omit qual clauses (bug #18187)
+insert into emp1 values (1, 1);
explain (costs off)
select 1 from emp1 full join
(select * from emp1 t1 join
diff --git a/src/test/regress/sql/join.sql b/src/test/regress/sql/join.sql
index 5c420a7c6d6..4f3c51b6eba 100644
--- a/src/test/regress/sql/join.sql
+++ b/src/test/regress/sql/join.sql
@@ -2623,6 +2623,7 @@ UPDATE emp1 SET code = t1.code + 1 FROM t1
WHERE t1.id = emp1.id RETURNING emp1.id, emp1.code;
-- Check that SJE does not mistakenly omit qual clauses (bug #18187)
+insert into emp1 values (1, 1);
explain (costs off)
select 1 from emp1 full join
(select * from emp1 t1 join