Horrible trigger performance after upgrade 8.0.12 -> 8.2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: pgsql-performance@xxxxxxxxxxxxxx
- Subject: Horrible trigger performance after upgrade 8.0.12 -> 8.2.3
- From: Joseph S <jks@xxxxxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 15:26:33 -0400
- Organization: Hub.Org Networking Services
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.10) Gecko/20070302 Fedora/1.5.0.10-1.fc6 pango-text Thunderbird/1.5.0.10 Mnenhy/0.7.4.0
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?
[Postgresql General]
[Postgresql PHP]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Yosemite]