X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6C2BDD6F49 for ; Sun, 20 Nov 2005 07:07:05 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58064-04 for ; Sun, 20 Nov 2005 11:07:06 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 9D118D6DC2 for ; Sun, 20 Nov 2005 07:07:01 -0400 (AST) Received: (qmail invoked by alias); 20 Nov 2005 11:07:02 -0000 Received: from dslb-084-063-030-177.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.30.177] by mail.gmx.net (mp011) with SMTP; 20 Nov 2005 12:07:02 +0100 X-Authenticated: #495269 From: Peter Eisentraut To: andy@areyoulocal.co.uk Subject: Re: Is it possible to redirect an update/insert/delete to a different table? Date: Sun, 20 Nov 2005 12:07:00 +0100 User-Agent: KMail/1.8.2 References: In-Reply-To: Cc: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511201207.01114.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/165 X-Sequence-Number: 23416 Andy Ballingall wrote: > I've looked through rules, and as far as I can make out, they are > only useful for explicit actions. I'm looking for something that > behaves as though it simply substitutes the table name for a > different table name before executing the command, no matter what the > command looks like. You can write a couple of rules for that. -- Peter Eisentraut http://developer.postgresql.org/~petere/