On 2019-02-24 00:34, Corey Huinker wrote:
> As I suspected, the code for SET NULL and SET DEFAULT are highly similar
> (see .diff), the major difference being two constants, the order of some
> variable declarations, and the recheck in the set-default case.
>
> The changes were so simple that I felt remiss not adding the patch for
> you (see .patch).
Right, this makes a lot of sense, similar to how ri_restrict() combines
RESTRICT and NO ACTION.
I'll take a closer look at your patch.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services