pgsql: Simplify FK-to-partitioned regression test query

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify FK-to-partitioned regression test query
Date: 2020-02-20 19:36:12
Message-ID: E1j4rcK-0003yB-Ce@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3f50d5ced3f854119862b1ce60a6f3c5d38a4386

Modified Files
--------------
src/test/regress/expected/foreign_key.out | 14 ++++++++------
src/test/regress/sql/foreign_key.sql | 6 ++----
2 files changed, 10 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-02-20 19:44:04 Re: pgsql: Add kqueue(2) support to the WaitEventSet API.
Previous Message Tom Lane 2020-02-20 18:40:47 Re: pgsql: Add kqueue(2) support to the WaitEventSet API.