Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B12321DCB2B1 for ; Mon, 27 Feb 2012 15:37:29 -0400 (AST) Received: from acidenitrix.villemain.org ([91.121.90.165]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S26O0-0002RF-8T for pgsql-hackers@postgresql.org; Mon, 27 Feb 2012 19:37:29 +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 1S26Nm-0002F7-QO; Mon, 27 Feb 2012 20:37:15 +0100 Received: by DimIMac.local (Postfix, from userid 501) id 4077C3BAAC06; Mon, 27 Feb 2012 20:37:09 +0100 (CET) From: Dimitri Fontaine To: Thom Brown Cc: Dimitri Fontaine , PostgreSQL Hackers Subject: Re: Command Triggers, patch v11 Organization: 2ndQuadrant References: User-Mail-Address: dimitri@2ndQuadrant.fr Date: Mon, 27 Feb 2012 20:37:09 +0100 In-Reply-To: (Thom Brown's message of "Sat, 25 Feb 2012 11:58:56 +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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/1330 X-Sequence-Number: 203694 Thom Brown writes: > CREATE COMMAND TRIGGER test_cmd_trg > BEFORE CREATE SCHEMA, > CREATE OPERATOR, > CREATE COLLATION, > CREATE CAST > EXECUTE PROCEDURE my_func(); > > I couldn't drop it completely unless I specified all of those commands. = Why? Because I couldn't find a nice enough way to implement that given the shared infrastructure Robert and Kaigai did put into place to handle dropping of objects. It could be that I didn't look hard enough, I'll be happy to get back that feature. > Incidentally, I've noticed the DROP COMMAND TRIGGER has a mistake in the = syntax. Thanks, fix will be in the next version. > The documentation also needs to cover the pg_cmdtrigger catalogue as > it's not mentioned anywhere. That too, working on it now, adding forgotten forms you reported and more, adding regression tests, fixing weird cases, getting there=C2=A0:) > I'm enjoying playing with this feature though btw. :) Thanks=C2=A0:) -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support