BUG #2835: Table inheritance and statement level trigger.

From: "William ZHANG" <uniware(at)zedware(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2835: Table inheritance and statement level trigger.
Date: 2006-12-18 08:17:54
Message-ID: 200612180817.kBI8HsNL091720@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2835
Logged by: William ZHANG
Email address: uniware(at)zedware(dot)org
PostgreSQL version: 8.2.0
Operating system: Linux
Description: Table inheritance and statement level trigger.
Details:

create language plpgsql;

create table foo(a int);

create table y(a int);
insert into y values(1);

create table yy(b int) inherits(y);

create or replace function func() returns trigger as
$func$
begin
insert into foo values(1);
return null;
end;
$func$ language plpgsql;

create trigger tr after update on y
for each statement execute procedure func();

update y set a = a + 1;

select * from foo;
-- foo is empty, but I think it should have one row.
-- trigger after delete failed, either.
-- trigger after insert is ok.

Browse pgsql-bugs by date

  From Date Subject
Next Message Albert Cervera i Areny 2006-12-18 09:49:29 BUG #2836: SPI_execute_plan failed on pl/pgsql function that worked on 8.1
Previous Message CN 2006-12-18 04:14:59 BUG #2827