Re: BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2
Date
Msg-id 29320.1467230602@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2  (andrew@tao11.riddles.org.uk)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: andrew@tao11.riddles.org.uk
Date:
Subject: BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2
Next
From: christopher.m.hanks@gmail.com
Date:
Subject: BUG #14220: pg_get_expr() with an incorrect relation id crashes the server