Re: efficient trigger function selection?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Kenneth Tilton <ktilton(at)mcna(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: efficient trigger function selection?
Date: 2012-04-10 20:59:27
Message-ID: 1334091567.13416.75.camel@sussancws0025
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2012-04-10 at 16:07 -0400, Kenneth Tilton wrote:
> Suppose I have an RDF-style table (with columns for subject,
> predicate, various object types, and graph) and want to have dozens or
> even hundreds of trigger functions defined conditionally on the
> predicate, ie "when predicate = '<your predicate here>'".
>
>
> My guess is Postgres is quite efficient at determining which if any
> trigger functions to call, but I thought I'd ask.

I recommend measuring the overhead with some bogus no-op triggers; my
guess is that it will be significant but maybe not too bad depending on
what the rest of the application is doing.

What are you trying to accomplish with so many triggers?

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aaron Burnett 2012-04-10 21:03:43 Re: Pg 9.1.3 pg_crypto question
Previous Message Tom Lane 2012-04-10 20:50:19 Re: Pg 9.1.3 pg_crypto question