X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5BB379FB305 for ; Mon, 21 Aug 2006 09:03:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19859-02 for ; Mon, 21 Aug 2006 09:03:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id 760099FB302 for ; Mon, 21 Aug 2006 09:03:12 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id m3so1568241ugc for ; Mon, 21 Aug 2006 05:03:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XpjIBP0IJIeQKExNKc8oWpWeDVHKZ86hsvJa+i/8xKl4Rxf2IfRkDzMROqt2re71RBq/QNanTLTaRJWXF4O1S+g8+c10jqPL/eKQWBHwLuuxQ20z/NNLSstvbCa429S5VIzeU70EXHMt9tRazBigYbfeJ6RvBDzOiSB9f8/Wu9c= Received: by 10.67.101.10 with SMTP id d10mr3534705ugm; Mon, 21 Aug 2006 05:03:10 -0700 (PDT) Received: by 10.67.118.11 with HTTP; Mon, 21 Aug 2006 05:03:10 -0700 (PDT) Message-ID: <55c095e90608210503h530a53b6rc49113e379e3d466@mail.gmail.com> Date: Mon, 21 Aug 2006 09:03:10 -0300 From: "Ezequias Rodrigues da Rocha" To: pgsql-sql@postgresql.org Subject: Triggers MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33312_153542.1156161790506" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.635 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/149 X-Sequence-Number: 26107 ------=_Part_33312_153542.1156161790506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 ? =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- A pior das democracias ainda =E9 melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships http://ezequiasrocha.blogspot.com/ ------=_Part_33312_153542.1156161790506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi list,
 
I am planning to generate a trigger to each [update or delete or inser= t] 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 h= ave more than 20 tables I would like to use only one trigger to solve my pr= oblem. Is that possible ?
 
Now my trigger is working well but I do not want to make 26 triggers a= nd 26 functions.
 
Is there any people that can help me with this question ?


=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-
          &n= bsp;            = ;           Atencios= amente (Sincerely)
            = ;            Ez= equias Rodrigues da Rocha
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-
A pior das democracias ainda =E9 melhor do que= a melhor das ditaduras
The worst of democracies is still better than th= e better of dictatorships
http://ezequiasrocha.blo= gspot.com/
------=_Part_33312_153542.1156161790506--