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 1pUWyV-0007Ez-Uy for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Feb 2023 18:02:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pUWyU-00054h-Mn for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Feb 2023 18:02:46 +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 1pUWyU-00054Y-EJ for pgsql-bugs@lists.postgresql.org; Tue, 21 Feb 2023 18:02:46 +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 1pUWyO-0005Fb-1C for pgsql-bugs@lists.postgresql.org; Tue, 21 Feb 2023 18:02:45 +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 31LI2cLc3977949; Tue, 21 Feb 2023 13:02:38 -0500 From: Tom Lane To: Dean Rasheed cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17803: Rule "ALSO INSERT ... SELECT ..." fails to substitute default values In-reply-to: References: <17803-53c63ed4ecb4eac6@postgresql.org> <3953951.1676991950@sss.pgh.pa.us> Comments: In-reply-to Dean Rasheed message dated "Tue, 21 Feb 2023 17:15:39 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3977947.1677002558.1@sss.pgh.pa.us> Date: Tue, 21 Feb 2023 13:02:38 -0500 Message-ID: <3977948.1677002558@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dean Rasheed writes: > Yeah, that makes sense. Something like this? (I think an elog() is > probably more useful than an Assert(), if we don't find what we > expect.) I think it's fine to leave the checks on parsetree->jointree being a FromExpr as Asserts, because that's assumed in a lot of places. Rest of it is OK by me. regards, tom lane