BUG #16856: Crash when add "_RETURN" rule on child table
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: todoubaba@gmail.com
Date: 2021-02-06T07:46:14Z
Lists: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 16856
Logged by: Yang Lin
Email address: todoubaba@gmail.com
PostgreSQL version: 12.5
Operating system: ubuntu 20.04
Description:
create table parent(a text);
create table child() inherits (parent);
create or replace rule "_RETURN" as
on select
to child
do instead
select *
from (values('x')) as t(a);
select * from parent;
The psql crash and report:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
Commits
-
Disallow converting an inheritance child table to a view.
- ad85e5efa1bf 10.16 landed
- 7736ab05fe83 9.6.21 landed
- 5ad03374bfe7 9.5.25 landed
- 580069037cec 11.11 landed
- f7332195708d 12.6 landed
- dd705a039f6c 14.0 landed
- 4353bc878135 13.2 landed