Fetch query which triggered a rule

Поиск
Список
Период
Сортировка
От Jonatan Evald Buus
Тема Fetch query which triggered a rule
Дата
Msg-id 113ce31b0811200324o672497d0jccb69d2e279697e2@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Greetings,
Is it possible to fetch the query which triggered a rule?

I.e. suppose I create the following rule:
CREATE RULE MyRule AS ON Select TO MyTable_Tbl DO INSTEAD process_query($sql);

Where $sql represents the query which triggered the rule.

Appreciate the input

Cheers
Jona

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

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: return MAX and when it happened
Следующее
От: "Sabin Coanda"
Дата:
Сообщение: hidden errors calling a volatile function inside a stable function