Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qywUR-00CCUI-5L for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2023 15:53:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qywUP-001Ygm-6P for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2023 15:53:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qywUO-001Yge-U4 for pgsql-bugs@lists.postgresql.org; Fri, 03 Nov 2023 15:53:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qywUI-003mqF-Eo for pgsql-bugs@lists.postgresql.org; Fri, 03 Nov 2023 15:53:39 +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 3A3FrVDZ3305564; Fri, 3 Nov 2023 11:53:31 -0400 From: Tom Lane To: Laurenz Albe cc: Joshua Uyehara , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18178: New Restriction on "ON SELECT" rules on tables In-reply-to: <8a0dd07e617563892e727a8119f9a34f86524eb1.camel@cybertec.at> References: <18178-05534d7064044d2d@postgresql.org> <3027424.1698934802@sss.pgh.pa.us> <8a0dd07e617563892e727a8119f9a34f86524eb1.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Fri, 03 Nov 2023 16:21:10 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3305562.1699026811.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Nov 2023 11:53:31 -0400 Message-ID: <3305563.1699026811@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > But I wonder if it would not be better to completely remove ON SELECT fr= om the CREATE RULE > command. Attached is a patch that does that. I don't think this is a great idea. There are perhaps still pg_dump scripts out there that use CREATE OR REPLACE RULE "_RETURN" to adjust view definitions. regards, tom lane