| От | Tom Lane |
|---|---|
| Тема | Re: plpsql function problem |
| Дата | |
| Msg-id | 952.1104958396@sss.pgh.pa.us обсуждение |
| Ответ на | plpsql function problem (drdani@mazsola.iit.uni-miskolc.hu) |
| Список | pgsql-sql |
drdani@mazsola.iit.uni-miskolc.hu writes:
> function
> .
> insert into table1 ... --> trigger function (runs after insert)
> .
> insert into table2 ...
> .
> select from table2 ... not found
> .
> This info looks to be unavailable inside the function. Can it be made
> availabel or must this whole thing reorgenized?
If it's an AFTER trigger, the trigger is currently not fired until the
end of the entire command (ie, whatever interactive command called your
function). So the SELECT isn't seeing the result because it hasn't
happened yet.
This will change in PG 8.0.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера