Bug #839: triggers do not execute in right order in procedures

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #839: triggers do not execute in right order in procedures
Дата
Msg-id 20021206070439.B35A0475DD7@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Eugene Gridasov (eugene@spider.ru) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
triggers do not execute in right order in procedures

Long Description
The constraint trigger on delete executes ONLY after procedure
completion, but it does not execute right after delete. WHY?


Sample Code
ex.
table1 has 2 columns: id and name
table2 has 3 columns: id, t1_id(references t1(id) on delete cascade) and 'name' field

i got a procedure (plpgsql)

declare i int;
begin
  select count(*) into i from table2 where t1_id=123;
  raise notice ''rows selected: %'',i;
  delete from table1 where id=123;
  select count(*) into i from table2 where t1_id=123;
  raise notice ''rows selected: %'',i;
end;



No file was uploaded with this report

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Bug #837: Unable to use LATIN9 (=ISO-8859-15) encoding
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bogus varno EXPLAIN bug (was Re: Explain analyze gives bogus varno for dblink views)