Notify rule

Поиск
Список
Период
Сортировка
От ivan_14_32
Тема Notify rule
Дата
Msg-id 4D635FC8.20304@mail.ru
обсуждение исходный текст
Ответы Re: Notify rule  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Notify rule  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
Hi!
I trying to create rule for update notifing:

CREATE OR REPLACE RULE "ttt_NotifyU" AS
    ON UPDATE TO "ttt" DO
 NOTIFY "ttt", '88';
this work.

But this
CREATE OR REPLACE RULE "ttt_NotifyU" AS
    ON UPDATE TO "ttt" DO
 NOTIFY "ttt", NEW."id";
don't (syntax error),
NOTIFY "ttt", CAST(NEW."id" as text)
too.

Q: How can I send tuple id (integer primary key) via notify using Rule?
    Target is erasing deprecated tuples from application's cache.

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

Предыдущее
От: Joel Reed
Дата:
Сообщение: string_agg hanging?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: string_agg hanging?