bug or feature?

From: Евгений Гридасов <eugene(at)spider(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: bug or feature?
Date: 2002-12-06 06:59:22
Message-ID: 532733187.20021206095922@spider.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello there
have some problems on 7.2.3/freebsd

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;

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

--------------------
Regards,
Eugene Gridasov
mailto:eugene(at)spider(dot)ru

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2002-12-06 07:04:39 Bug #839: triggers do not execute in right order in procedures
Previous Message Steve Haslam 2002-12-05 23:33:56 Re: Bug #837: Unable to use LATIN9 (=ISO-8859-15) encoding