Re: Updating two table via a Rule?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Updating two table via a Rule?
Дата
Msg-id 23360.978376907@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Updating two table via a Rule?  (Michael Davis <mdavis@sevainc.com>)
Список pgsql-sql
Try doing the two inserts in one rule:

CREATE RULE ... DO INSTEAD
(
INSERT INTO ... ;
INSERT INTO ... ;
);

This is the only way of controlling the order in which the actions will
be done; separate rules will be applied in an undefined order.
        regards, tom lane


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

Предыдущее
От: Ferruccio Zamuner
Дата:
Сообщение: resetting serials and sequences
Следующее
От: Tom Lane
Дата:
Сообщение: Re: resetting serials and sequences