Repetitive code in RI triggers

Ildar Musin <i.musin@postgrespro.ru>

From: Ildar Musin <i.musin@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Date: 2017-04-10T15:55:04Z
Lists: pgsql-hackers

Attachments

Hi all,

I was looking through the RI triggers code recently and noticed a few 
almost identical functions, e.g. ri_restrict_upd() and 
ri_restrict_del(). The following patch is an attempt to reduce some of 
repetitive code. Yet there is still room for improvement.

Thanks,
-- 
Ildar Musin
i.musin@postgrespro.ru

Commits

  1. Merge near-duplicate code in RI triggers.