Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CCA132E2F6D for ; Thu, 10 Jan 2008 13:10:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 45640-01-6 for ; Thu, 10 Jan 2008 13:10:38 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 506432E1C3D for ; Thu, 10 Jan 2008 13:10:48 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-101-79.bk7-dsl.surnet.cl [200.126.101.79]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m0AHAa3C026306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Jan 2008 09:10:39 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9F95847BCC; Thu, 10 Jan 2008 14:10:27 -0300 (CLST) Date: Thu, 10 Jan 2008 14:10:27 -0300 From: Alvaro Herrera To: Gerardo Herzig Cc: Pavel Stehule , Chris Browne , pgsql-sql@postgresql.org Subject: Re: trigger for TRUNCATE? Message-ID: <20080110171027.GK6465@alvh.no-ip.org> References: <4783BEA9.3020507@fmed.uba.ar> <60tzloyr0u.fsf@dba2.int.libertyrms.com> <162867790801081338n237497efpecffaa255253274d@mail.gmail.com> <47864A6B.3070902@fmed.uba.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47864A6B.3070902@fmed.uba.ar> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 10 Jan 2008 09:10:39 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/69 X-Sequence-Number: 29922 Gerardo Herzig escribió: > Yes, the TRUNCATE statement is not sql ansi, maybe is a more low level > thing than i think. TRUNCATE currently does not fire triggers, but that doesn't mean it's impossible to do it. I think it would be fairly easy to add support for that. Currently, Mammoth Replicator does replicate TRUNCATE commands. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.