]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Simplify FK-to-partitioned regression test query
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 20 Feb 2020 17:14:20 +0000 (14:14 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 20 Feb 2020 17:14:20 +0000 (14:14 -0300)
commitb2304a71748a3e664a1b8354d746f28c38aaa816
tree76f4ccea1f1a98210daf1bcedf2d46d092e85959
parent53b01acd463d64c385db0ab728b8cc336549a315
Simplify FK-to-partitioned regression test query

Avoid a join between relations having the FK to detect FK violation.
The planner might optimize this considering the PK must exist on the
referenced side at some point, effectively masking a bug this test
tries to detect.

Tom Lane and Jehan-Guillaume de Rorthais
Discussion: https://postgr.es/m/467.1581270529@sss.pgh.pa.us
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql