Repetitive code in RI triggers

From: Ildar Musin <i(dot)musin(at)postgrespro(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Repetitive code in RI triggers
Date: 2017-04-10 15:55:04
Message-ID: ca7064a7-6adc-6f22-ca47-8615ba9425a5@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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(dot)musin(at)postgrespro(dot)ru

Attachment Content-Type Size
ri_patch.diff text/x-patch 27.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-04-10 16:10:07 Re: GCC 7 warnings
Previous Message Alex K 2017-04-10 15:39:16 Re: GSOC'17 project introduction: Parallel COPY execution with errors handling
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy