Re: max number of triggers in a table

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: J <junaili(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: max number of triggers in a table
Date: 2005-09-07 20:11:43
Message-ID: 1126123903.15992.24.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2005-09-07 at 14:17, J wrote:
> Hi,
> I was wondering if there's a recommended maximum number of triggers in a
> table?
> Will having 3 triggers, one for insert or update, one for insert and one
> for delete greatly impact performance?

It's not the number so much as what they're doing.

If your trigger has some part causes a seq scan of a large table, then
it will be slow.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Randal L. Schwartz 2005-09-07 20:33:51 Re: Email Verfication Regular Expression
Previous Message Qingqing Zhuo 2005-09-07 19:47:43 Re: RAID0 and pg_xlog