pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify FK-to-partitioned regression test query
Date: Thu, 20 Feb 2020 19:36:12 +0000
Message-ID: <E1j4rcK-0003yB-Ce@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)

Message-ID: <E1j4rcK-0003yB-Ce@gemulon.postgresql.org>
Permalink:  ../E1j4rcK-0003yB-Ce@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j4rcK-0003yB-Ce@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Simplify FK-to-partitioned regression test query
  In-Reply-To: <E1j4rcK-0003yB-Ce@gemulon.postgresql.org>
  References: <E1j4rcK-0003yB-Ce@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox