postgresql/src/backend/utils
Peter Eisentraut 0afdecc1e5 Remove unnecessary unused MATCH PARTIAL code
ri_triggers.c spends a lot of space catering to a not-yet-implemented
MATCH PARTIAL option.  An actual implementation would probably not use
the existing code structure anyway, so let's just simplify this for
now.

First, have ri_FetchConstraintInfo() check that riinfo->confmatchtype
is valid.  Then we don't have to repeat that everywhere.

In the various referential action functions, we don't need to pay
attention to the match type at all right now, so remove all that code.
A future MATCH PARTIAL implementation would probably have some
conditions added to the present code, but it won't need an entirely
separate switch branch in each case.

In RI_FKey_fk_upd_check_required(), reorganize the code to make it
much simpler.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/0ccdd3e1-10b0-dd05-d8a7-183507c11eb1%402ndquadrant.com
2019-02-28 11:06:33 +01:00
..
adt Remove unnecessary unused MATCH PARTIAL code 2019-02-28 11:06:33 +01:00
cache Move code for managing PartitionDescs into a new file, partdesc.c 2019-02-21 11:45:02 -05:00
error Update copyright for 2019 2019-01-02 12:44:25 -05:00
fmgr Change function call information to be variable length. 2019-01-26 14:17:52 -08:00
hash Update copyright for 2019 2019-01-02 12:44:25 -05:00
init Move max_wal_senders out of max_connections for connection slot handling 2019-02-12 10:07:56 +09:00
mb More unconstify use 2019-02-13 11:50:16 +01:00
misc Improve documentation of data_sync_retry 2019-02-28 11:02:11 +09:00
mmgr Fix inconsistent out-of-memory error reporting in dsa.c. 2019-02-25 11:11:40 +13:00
resowner Update copyright for 2019 2019-01-02 12:44:25 -05:00
sort Change function call information to be variable length. 2019-01-26 14:17:52 -08:00
time Mark correctly initial slot snapshots with MVCC type when built 2019-02-20 12:31:07 +09:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_dummy_probes.sed Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_fmgrtab.pl Use Getopt::Long for catalog scripts 2019-02-12 12:22:08 -03:00
Makefile Use Getopt::Long for catalog scripts 2019-02-12 12:22:08 -03:00
errcodes.txt Update copyright for 2019 2019-01-02 12:44:25 -05:00
generate-errcodes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
probes.d Update copyright for 2019 2019-01-02 12:44:25 -05:00