dbTalk Databases Forums  

[BUGS] BUG #2835: Table inheritance and statement level trigger.

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2835: Table inheritance and statement level trigger. in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
William ZHANG
 
Posts: n/a

Default [BUGS] BUG #2835: Table inheritance and statement level trigger. - 12-18-2006 , 04:24 PM







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.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.