| От | Richard Huxton |
|---|---|
| Тема | Re: obtaining the query string inside a trigger |
| Дата | |
| Msg-id | 478DCCA1.4060505@archonet.com обсуждение исходный текст |
| Ответ на | obtaining the query string inside a trigger (Gerardo Herzig <gherzig@fmed.uba.ar>) |
| Список | pgsql-sql |
Gerardo Herzig wrote: > Hi all. Im working on a "on each statement" update trigger, so NEW and > OLD are NULL. > Suppose a simple query like 'update mytable set id=id+500 where id < > 50'...There is a way to obtaining the 'set id=..' and the where clause > in some way? Afraid not. It might be possible to implement in the simple case, but what with views rewriting queries and triggers issuing their own secondary queries it's not always obvious what "the" query would be. What we really need is NEW and OLD as sets of affected rows in statement-queries. Unfortunately that's not implemented yet either - it's on the TODO I believe though. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера