pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Increase test coverage in RI_FKey_fk_upd_check_required()
4+ messages / 3 participants
[nested] [flat]
* pgsql: Increase test coverage in RI_FKey_fk_upd_check_required()
@ 2019-01-16 16:09 Peter Eisentraut <peter@eisentraut.org>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2019-01-16 16:09 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Increase test coverage in RI_FKey_fk_upd_check_required()
This checks the code path of FKCONSTR_MATCH_FULL and
RI_KEYS_SOME_NULL.
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Mi Tar <mmitar@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/7ae17c95-0c99-d420-032a-c271f510112b@2ndquadrant.com/
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/45ed6e1ae01d219e4145e7541758651dfcf71b83
Modified Files
--------------
src/test/regress/expected/foreign_key.out | 17 ++++++++++++++++-
src/test/regress/sql/foreign_key.sql | 14 ++++++++++++++
2 files changed, 30 insertions(+), 1 deletion(-)
^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Increase test coverage in RI_FKey_pk_upd_check_required()
@ 2019-01-16 16:09 Peter Eisentraut <peter@eisentraut.org>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Eisentraut @ 2019-01-16 16:09 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Increase test coverage in RI_FKey_pk_upd_check_required()
This checks the case where the primary key has at least one null
column.
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Mi Tar <mmitar@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/7ae17c95-0c99-d420-032a-c271f510112b@2ndquadrant.com/
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/cdaf4a472776141899dfdb742c9b73581f19f59a
Modified Files
--------------
src/test/regress/expected/foreign_key.out | 24 ++++++++++++++++++++++++
src/test/regress/sql/foreign_key.sql | 19 +++++++++++++++++++
2 files changed, 43 insertions(+)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required()
@ 2019-01-16 16:39 David G. Johnston <david.g.johnston@gmail.com>
parent: Peter Eisentraut <peter@eisentraut.org>
0 siblings, 1 reply; 4+ messages in thread
From: David G. Johnston @ 2019-01-16 16:39 UTC (permalink / raw)
To: Peter Eisentraut <peter@eisentraut.org>; +Cc: pgsql-committers@lists.postgresql.org <pgsql-committers@lists.postgresql.org>
On Wednesday, January 16, 2019, Peter Eisentraut <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...
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required()
@ 2019-01-16 20:00 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2019-01-16 20:00 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-committers@lists.postgresql.org <pgsql-committers@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-01-16 20:00 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 16:09 pgsql: Increase test coverage in RI_FKey_pk_upd_check_required() Peter Eisentraut <peter@eisentraut.org>
2019-01-16 16:39 ` Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required() David G. Johnston <david.g.johnston@gmail.com>
2019-01-16 20:00 ` Re: pgsql: Increase test coverage in RI_FKey_pk_upd_check_required() Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2019-01-16 16:09 pgsql: Increase test coverage in RI_FKey_fk_upd_check_required() Peter Eisentraut <peter@eisentraut.org>
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