Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oguVB-0006zK-E1 for pgsql-general@arkaria.postgresql.org; Fri, 07 Oct 2022 21:03:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oguVA-0007G7-Ap for pgsql-general@arkaria.postgresql.org; Fri, 07 Oct 2022 21:03:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oguVA-0007Fy-0R for pgsql-general@lists.postgresql.org; Fri, 07 Oct 2022 21:03:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oguV7-0000xd-N5 for pgsql-general@postgresql.org; Fri, 07 Oct 2022 21:03:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 297L3JS73352407; Fri, 7 Oct 2022 17:03:20 -0400 From: Tom Lane To: Kouber Saparev cc: pgsql-general@postgresql.org Subject: Re: Cannot convert partitioned table to a view In-reply-to: References: <2662605.1665064930@sss.pgh.pa.us> <3349381.1665174808@sss.pgh.pa.us> Comments: In-reply-to Kouber Saparev message dated "Fri, 07 Oct 2022 23:44:09 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3352405.1665176599.1@sss.pgh.pa.us> Date: Fri, 07 Oct 2022 17:03:19 -0400 Message-ID: <3352406.1665176599@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kouber Saparev writes: > Excuse me, I didn't understand what was about to be ripped out then. The fact that creating a _RETURN rule for a table causes it to be changed into a view. That's ugly and arguably dangerous. regards, tom lane