trigger when clause - Mailing list pgsql-general

From Andy Chambers
Subject trigger when clause
Date
Msg-id CAAfW55rmWBinBaoSH7sWHhegJ4zQpHhZvg+ayYby0Jtbqtw6Ew@mail.gmail.com
Whole thread Raw
Responses Re: trigger when clause
List pgsql-general
Hi,

Does anyone know the time complexity of the algorithm used to handle triggers with a when clause?  

To make this a little more concrete, what is likely to perform better

a) A single trigger with "n" if/else clauses
b) A set of "n" triggers each using a different when clause.

What if n is 10?
What if n is 200?

The when clause would just be comparing a text "predicate" column for equality.

Cheers,
Andy

--
Andy Chambers
Software Engineer
(e) achambers@mcna.net
(t) 954-682-0573

CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.

pgsql-general by date:

Previous
From: Kenneth Tilton
Date:
Subject: efficient trigger function selection?
Next
From: Tom Lane
Date:
Subject: Re: Pg 9.1.3 pg_crypto question