Re: Is it possible to redirect an update/insert/delete to a different table?

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: andy(at)areyoulocal(dot)co(dot)uk
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Is it possible to redirect an update/insert/delete to a different table?
Date: 2005-11-20 14:23:29
Message-ID: c2d9e70e0511200623w6e90d15bt64a03a2cfcd7132b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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.
>

Make 3 rules (INSERT/UPDATE/DELETE), 4 if you want SELECT as well...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andy Ballingall 2005-11-20 15:28:10 Re: Is it possible to redirect an update/insert/delete to a different table?
Previous Message Peter Eisentraut 2005-11-20 11:08:00 Re: Trigger / rule question