Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id A0B608E3529 for ; Sat, 3 Mar 2012 10:35:23 -0400 (AST) Received: from acidenitrix.villemain.org ([91.121.90.165]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S3q3N-0002ZF-Df for pgsql-hackers@postgresql.org; Sat, 03 Mar 2012 14:35:22 +0000 Received: from 89-158-241-83.rev.dartybox.com ([89.158.241.83] helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1S3q39-0003zO-Tn; Sat, 03 Mar 2012 15:35:07 +0100 Received: by DimIMac.local (Postfix, from userid 501) id 878DB3C2B2FF; Sat, 3 Mar 2012 15:35:00 +0100 (CET) From: Dimitri Fontaine To: Thom Brown Cc: Dimitri Fontaine , Robert Haas , Kevin Grittner , Tom Lane , PostgreSQL Hackers Subject: Re: Command Triggers, patch v11 Organization: 2ndQuadrant References: <4965.1330441437@sss.pgh.pa.us> <4F4C99AD0200002500045C72@gw.wicourts.gov> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Sat, 03 Mar 2012 15:34:59 +0100 In-Reply-To: (Thom Brown's message of "Sat, 3 Mar 2012 14:03:01 +0000") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/114 X-Sequence-Number: 203996 Thom Brown writes: > problem. It was the DROP COMMAND TRIGGER statement that garnered > comment, as it makes more sense to drop the entire trigger than > individual commands for that trigger. What you're saying here is that a single command could have more than one command attached to it, and what I understand Tom, Robert and Kevin are saying is that any given command trigger should only be attached to a single command. If we wanted to be more consistent we would need to have a way to attach the same trigger to both BEFORE and AFTER the command, as of now you need two triggers here. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support