Horrible trigger performance after upgrade 8.0.12 -> 8.2.3

From: Joseph S <jks(at)selectacast(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Horrible trigger performance after upgrade 8.0.12 -> 8.2.3
Date: 2007-03-20 19:26:33
Message-ID: etpch9$bue$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

After upgrading to 8.2.3 INSERTs and UPDATEs on one of my tables became
incredibly slow. I traced the problem to one of my triggers that calls
one of my defined functions (that is IMMUTABLE). If I inline the
function instead of calling it the runtime for my test update drops from
10261.234 ms to 564.094 ms. The time running the trigger itself
dropped from 9749.910 to 99.504.

BTW does make any sense to bother marking trigger functions as STABLE or
IMMUTABLE?

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2007-03-20 19:58:25 Re: Horrible trigger performance after upgrade 8.0.12 -> 8.2.3
Previous Message Ron 2007-03-20 18:44:06 Re: SATA RAID: Promise vs. 3ware