From: Tom Lane <tgl@sss.pgh.pa.us>
To: liukui@kingbase.com.cn
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17646: create rule named "_RETURN" will cause pg core
Date: Mon, 17 Oct 2022 10:17:55 -0400
Message-ID: <2164336.1666016275@sss.pgh.pa.us> (raw)
In-Reply-To: <17646-70c93cfa40365776@postgresql.org>
References: <17646-70c93cfa40365776@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> here is a test case
> create table t (id integer);
> create view v1 as select * from t;
> create or replace rule "_RETURN" as on UPDATE to v1 do instead select * from
> t;
Meh. We should be preventing you from doing that.
(Although the core dump is also not great --- something should've noticed
the bogosity of the plan earlier than this.)
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, liukui@kingbase.com.cn, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17646: create rule named "_RETURN" will cause pg core
In-Reply-To: <2164336.1666016275@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