Re: Calling a function from a rule?

Поиск
Список
Период
Сортировка
Искать
От
Vik Fearing
Тема
Re: Calling a function from a rule?
Дата
Msg-id
0a22aafe-9a3a-78b5-84e3-88c98512cba9@postgresfriends.org
Ответ на
Список
Дерево обсуждения
Calling a function from a rule? stan <stanb@panix.com>
Re: Calling a function from a rule? Vik Fearing <vik@postgresfriends.org>
Re: Calling a function from a rule? stan <stanb@panix.com>
Re: Calling a function from a rule? stan <stanb@panix.com>
On 04/03/2020 14:05, stan wrote:
> I am missing something about how to properly create a rule.

What you are missing is that you should not ever use RULEs.

> Thanks to the helpful folks on this list, I am looking a creating some
> update able views. So, looks like I need to create a rule and a function
> for this.

Use an INSTEAD OF trigger on the view unless it's a simple view in which
case it "just works".
-- 
Vik Fearing


В списке pgsql-general по дате отправления
От: Hernan Jesus Gonzalez Carmona
Дата:
Сообщение: Re: Exportacion por lotes
От: stan
Дата:
FAQ