Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E79604765D2 for ; Tue, 10 Sep 2002 15:23:22 -0400 (EDT) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by postgresql.org (Postfix) with ESMTP id 7993F4765C9 for ; Tue, 10 Sep 2002 15:23:21 -0400 (EDT) Received: from loki ([68.102.33.38]) by lakemtao06.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020910192321.OAGG4183.lakemtao06.cox.net@loki>; Tue, 10 Sep 2002 15:23:21 -0400 From: "Adam Erickson" To: "Michael Paesold" , Subject: Re: Rules and Triggers Date: Tue, 10 Sep 2002 14:24:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <006401c258fb$47710520$4201a8c0@beeblebrox> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/74 X-Sequence-Number: 9351 Correct me if I'm wrong, but rules constrain the SQL (ie. validation). Triggers are carried out after the SQL is executed and the data is modified. So, to answer your question, I think rules come first. As to which order the rules / triggers are executed probably depends on the order you put them in when you created them but I pulled that straight out of my arse. :) > -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Michael Paesold > Sent: Tuesday, September 10, 2002 1:53 PM > To: pgsql-sql@postgresql.org > Subject: [SQL] Rules and Triggers > > > Hi all, > > can you tell me in what order rules and triggers are executed? > > First, what comes first, the rules, or the triggers? > And then, in what order are all the rules / triggers executed? > > Regards, > Michael Paesold > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org