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 1loAa7-0002ZM-R1 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jun 2021 20:01:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1loAa4-0003r7-QI for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jun 2021 20:01:40 +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 1loAa4-0003qC-IX for pgsql-hackers@lists.postgresql.org; Tue, 01 Jun 2021 20:01:40 +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 1loAa2-00013x-0a for pgsql-hackers@lists.postgresql.org; Tue, 01 Jun 2021 20:01: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 151K1YSj2850300; Tue, 1 Jun 2021 16:01:35 -0400 From: Tom Lane To: Alexander Pyhalov cc: Amit Langote , PostgreSQL Hackers Subject: Re: join pushdown and issue with foreign update In-reply-to: References: <7817fb9ebd6661cdf9b67dec6e129a78@postgrespro.ru> <050b90460c024dd21af53dbaaf8fd510@postgrespro.ru> <2845636.1622571541@sss.pgh.pa.us> Comments: In-reply-to Alexander Pyhalov message dated "Tue, 01 Jun 2021 21:47:58 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2850298.1622577694.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 01 Jun 2021 16:01:34 -0400 Message-ID: <2850299.1622577694@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Pyhalov writes: > Tom Lane писал 2021-06-01 21:19: >> ISTM that using a specific rowtype rather than RECORD would be >> quite disastrous from the standpoint of bloating the number of >> distinct resjunk columns we need for a partition tree with a >> lot of children. Maybe we'll have to go that way, but it seems >> like an absolute last resort. > Why do you think they are distinct? > In suggested patch all of them will have type of the common ancestor > (root of the partition tree). Seems moderately unlikely that that will work in cases where the partition children have rowtypes different from the ancestor (different column order etc). It'll also cause the problem we originally sought to avoid for selects across traditional inheritance trees, where there isn't a common partition ancestor. regards, tom lane