create rule x as on select...do insert - when?

Поиск
Список
Период
Сортировка
От M.Mazurek@poznan.multinet.pl
Тема create rule x as on select...do insert - when?
Дата
Msg-id Pine.BSF.4.21.0004120101050.12788-100000@arka.poznan.mtl.pl
обсуждение исходный текст
Ответы Re: create rule x as on select...do insert - when?
Список pgsql-general
Hi all,
I'm trying to create simple rule:
nieruchomosci=> create rule log_select as
on select to oferty do insert into log_oferty (nr) values(oferty.nr);
ERROR:  only instead-select rules currently supported on select
nieruchomosci=>

pg 6.5.3 on linux, am I forced to create a trigger or is there a simpler
solution. It is to be a simple rule which is to log to another relation
information about touples selected in query.
creating view is not helpfull, because i have to store my data at once in
log relation not in a view.

any hints?



Marcin Mazurek

--
administrator
MULTINET SA o/Poznan
http://www.multinet.pl/


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

Предыдущее
От: Jeffrey
Дата:
Сообщение: Out of Memory Errors
Следующее
От: The Hermit Hacker
Дата:
Сообщение: SearchEngine ...