pgsql: Minor code rearrangement to save a few cycles in RI_FKey_check

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Minor code rearrangement to save a few cycles in RI_FKey_check
Date: 2006-08-21 19:15:29
Message-ID: 20060821191530.00CDB9FB40A@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Minor code rearrangement to save a few cycles in RI_FKey_check when
the subject tuple is already deleted: we need not open the pk_rel
until after we check that.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
ri_triggers.c (r1.86 -> r1.87)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/ri_triggers.c.diff?r1=1.86&r2=1.87)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-08-21 19:21:38 pgsql: Fix encrypted-LDAP support so that it doesn't cause the server to
Previous Message Tom Lane 2006-08-21 16:24:02 pgsql: Remove obsolete tip about casting bool to int, per Taiki