INSERT RULE QUERY ORDER

Поиск
Список
Период
Сортировка
От Justin Tocci
Тема INSERT RULE QUERY ORDER
Дата
Msg-id FCC16A7FBE5D074D9E53A8414424E2AC138D11@TLCFWA1NT400
обсуждение исходный текст
Ответы Re: INSERT RULE QUERY ORDER  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
When my RULE takes the form of:
 
CREATE RULE name AS ON INSERT TO table DO INSTEAD ( UPDATE query ; INSERT query) ;
 
The INSERT query doesn't fire and there is no error. Putting the INSERT first allows them to both fire. Can anyone tell me why? I think it has something to do with *NEW* and *OLD* being initialized differently for an UPDATE than for an INSERT.
 
I'd like to know what's going on so I can be confident I'm writing my rules correctly.
 
Thanks all.
 
-------------------------------------------
jtocci
Fort Wayne, IN
 
 
 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Could not receive data from server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: indices and cidr/inet type