Re: Triggers

From: Kaloyan Iliev <news1(at)faith(dot)digsys(dot)bg>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Triggers
Date: 2006-08-21 12:19:08
Message-ID: 44E9A4BC.2040309@faith.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,
You can use one procedure(function in Postgres) but you have to use 26
triggers.
Every trigger can call this one procedure to record the information you
want.

Regards,
Kaloyan Iliev

Ezequias Rodrigues da Rocha wrote:

> Hi list,
>
> I am planning to generate a trigger to each [update or delete or
> insert] on my database to register all moviment on my base
> (current_user, when, action, user).
>
> I notice that the trigger is able put a procedure in action but as I
> have more than 20 tables I would like to use only one trigger to solve
> my problem. Is that possible ?
>
> Now my trigger is working well but I do not want to make 26 triggers
> and 26 functions.
>
> Is there any people that can help me with this question ?
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Atenciosamente (Sincerely)
> Ezequias Rodrigues da Rocha
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> A pior das democracias ainda й melhor do que a melhor das ditaduras
> The worst of democracies is still better than the better of dictatorships
> http://ezequiasrocha.blogspot.com/

In response to

  • Triggers at 2006-08-21 12:03:10 from Ezequias Rodrigues da Rocha

Browse pgsql-sql by date

  From Date Subject
Next Message Kis János Tamás 2006-08-22 06:34:07 Re: Triggers
Previous Message Ezequias Rodrigues da Rocha 2006-08-21 12:03:10 Triggers