Re: BUG #17646: create rule named "_RETURN" will cause pg core
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: liukui@kingbase.com.cn
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-10-17T14:17:55Z
Lists: pgsql-bugs
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
Commits
-
Reject non-ON-SELECT rules that are named "_RETURN".
- ecf4ce689a7c 10.23 landed
- e9377e3e53e6 11.18 landed
- b21615d1e9b0 13.9 landed
- 797e313dc9ae 16.0 landed
- 65c1106d8c5b 12.13 landed
- 4a41a069e7ac 15.1 landed
- 2f26cec48843 14.6 landed
-
Guard against table-AM-less relations in planner.
- eec34661182d 16.0 landed
- 99b6b705d439 12.13 landed
- 8c611602bd35 14.6 landed
- 62b263bf779e 13.9 landed
- 2e3326929b0b 15.1 landed