From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-committers@lists.postgresql.org <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required()
Date: Wed, 16 Jan 2019 21:00:10 +0100
Message-ID: <8ff1cfd7-7b30-9e10-84d7-f68123c5e2b2@2ndquadrant.com> (raw)
In-Reply-To: <CAKFQuwY+9NKT5XEXnvKZYma0VVKYG7MHSqfUmH5wvMdBFuGFTw@mail.gmail.com>
References: <E1gjnl3-0003Cc-I2@gemulon.postgresql.org>
<CAKFQuwY+9NKT5XEXnvKZYma0VVKYG7MHSqfUmH5wvMdBFuGFTw@mail.gmail.com>
On 16/01/2019 17:39, David G. Johnston wrote:
> On Wednesday, January 16, 2019, Peter Eisentraut <peter@eisentraut.org
> <mailto:peter@eisentraut.org>> wrote:
>
> Increase test coverage in RI_FKey_pk_upd_check_required()
>
> This checks the case where the primary key has at least one null
> column.
>
>
> Sorry if this seems pedantic but you are testing where a unique index
> has at least one null column value. A primary key, per the docs, cannot
> contain null in any of its columns. I read the commit message and
> thought maybe that had changed while I wasn’t looking...
Yeah, it's the foreign key referencing the primary key in this case.
You are correct, the message is a bit wrong.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, david.g.johnston@gmail.com
Subject: Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required()
In-Reply-To: <8ff1cfd7-7b30-9e10-84d7-f68123c5e2b2@2ndquadrant.com>
References: <E1gjnl3-0003Cc-I2@gemulon.postgresql.org> <CAKFQuwY+9NKT5XEXnvKZYma0VVKYG7MHSqfUmH5wvMdBFuGFTw@mail.gmail.com> <8ff1cfd7-7b30-9e10-84d7-f68123c5e2b2@2ndquadrant.com>
* 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