pgsql: Merge near-duplicate code in RI triggers

2019-02-28 Thread Peter Eisentraut
Merge near-duplicate code in RI triggers Merge ri_setnull and ri_setdefault into one function ri_set. These functions were to a large part identical. This is a continuation in spirit of 4797f9b519995ceca5d6b8550b5caa2ff6d19347. Author: Corey Huinker Discussion: https://www.postgresql.org/mess

pgsql: Merge near-duplicate code in RI triggers.

2017-11-18 Thread Tom Lane
Merge near-duplicate code in RI triggers. Merge ri_restrict_del and ri_restrict_upd into one function ri_restrict. Create a function ri_setnull that is the common implementation of RI_FKey_setnull_del and RI_FKey_setnull_upd. Likewise create a function ri_setdefault that is the common implementat