From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: todoubaba@gmail.com
Subject: BUG #16856: Crash when add "_RETURN" rule on child table
Date: Sat, 06 Feb 2021 07:46:14 +0000
Message-ID: <16856-0363e05c6e1612fd@postgresql.org> (raw)
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.
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: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, todoubaba@gmail.com
Subject: Re: BUG #16856: Crash when add "_RETURN" rule on child table
In-Reply-To: <16856-0363e05c6e1612fd@postgresql.org>
* 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