andrew@tao11.riddles.org.uk writes:
> create table t1 (a integer primary key, b text);
> create table t2 (a integer primary key, b integer references t1);
> create rule r1 as on delete to t1 do delete from t2 where t2.b=old.a;
> delete from t1 where a=1;
> ERROR: no relation entry for relid 2
Fixed, thanks for report!
regards, tom lane