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

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Is it possible to redirect an update/insert/delete to a different table?
Дата
Msg-id c2d9e70e0511200623w6e90d15bt64a03a2cfcd7132b@mail.gmail.com
обсуждение исходный текст
Ответ на Is it possible to redirect an update/insert/delete to a different table?  (Andy Ballingall <andy@areyoulocal.co.uk>)
Ответы Re: Is it possible to redirect an update/insert/delete to a different table?  (Andy Ballingall <andy@areyoulocal.co.uk>)
Список 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 ;)


В списке pgsql-sql по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Trigger / rule question
Следующее
От: Andy Ballingall
Дата:
Сообщение: Re: Is it possible to redirect an update/insert/delete to a different table?