Re: [HACKERS] Repetitive code in RI triggers

2017-11-20 Thread Ildar Musin
On 19.11.2017 00:31, Tom Lane wrote: Ildar Musin writes: [ ri_triggers_v2.patch ] Pushed with two minor improvements. I noticed that ri_setdefault could just go directly to ri_restrict rather than call the two separate triggers that would end up there anyway; that lets its argument be "Tri

Re: [HACKERS] Repetitive code in RI triggers

2017-11-18 Thread Tom Lane
Ildar Musin writes: > [ ri_triggers_v2.patch ] Pushed with two minor improvements. I noticed that ri_setdefault could just go directly to ri_restrict rather than call the two separate triggers that would end up there anyway; that lets its argument be "TriggerData *trigdata" for more consistency