From: Tom Lane <tgl@sss.pgh.pa.us>
To: andrew@tao11.riddles.org.uk
Cc: pgsql-bugs@postgresql.org
Cc: david.clymer@vistashare.com
Subject: Re: BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2
Date: Wed, 29 Jun 2016 16:03:22 -0400
Message-ID: <29320.1467230602@sss.pgh.pa.us> (raw)
In-Reply-To: <20160629183338.1397.43514@wrigleys.postgresql.org>
References: <20160629183338.1397.43514@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, david.clymer@vistashare.com
Subject: Re: BUG #14219: rules vs. FK optimization: ERROR: no relation entry for relid 2
In-Reply-To: <29320.1467230602@sss.pgh.pa.us>
References: <20160629183338.1397.43514@wrigleys.postgresql.org> <29320.1467230602@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox