Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikDXW-00085a-KC for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Dec 2019 20:45:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikDXV-0000JD-71 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Dec 2019 20:45:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikDXU-0000J5-To for pgsql-hackers@lists.postgresql.org; Wed, 25 Dec 2019 20:45:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ikDXS-0006O3-Ok for pgsql-hackers@lists.postgresql.org; Wed, 25 Dec 2019 20:45:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBPKjlKD002193; Wed, 25 Dec 2019 15:45:47 -0500 From: Tom Lane To: Amit Langote cc: PostgreSQL Hackers Subject: Re: unsupportable composite type partition keys In-reply-to: References: <5361.1576602769@sss.pgh.pa.us> <28160.1576676326@sss.pgh.pa.us> <26766.1576947735@sss.pgh.pa.us> <24653.1576962784@sss.pgh.pa.us> Comments: In-reply-to Amit Langote message dated "Tue, 24 Dec 2019 18:08:48 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2191.1577306747.1@sss.pgh.pa.us> Date: Wed, 25 Dec 2019 15:45:47 -0500 Message-ID: <2192.1577306747@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Langote writes: >> On Sun, Dec 22, 2019 at 6:13 AM Tom Lane wrote: >>> I wonder whether we couldn't also lift >>> the restriction against whole-row Vars in partition expressions. >>> Doesn't seem like there is much difference between such a Var and >>> a row(...)::table_rowtype expression. > I gave that a try and ended up with attached that applies on top of > your delay-loading-relcache-partition-data-2.patch. Pushed with minor fixes. regards, tom lane