QUERY: create table foo (x int4);
QUERY: select * from foo;
x  
-- 
QUERY: create table bar (x int4, y float4);
QUERY: create rule rule1 as on insert to bar do insert into foo (x) values (new.x);
QUERY: insert into bar (x,y) values (10, -10.0);
QUERY: insert into bar (x,y) values (20, -20.0);
QUERY: insert into bar (x,y) values (30, 3.14159);
QUERY: select * from bar;
x   y        
--- -------- 
10  -10      
20  -20      
30  3.14159  
QUERY: select * from foo;
x   
--- 
10  
20  
30  
QUERY: drop table foo, bar;
