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 1ijStu-0002zd-7U for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Dec 2019 18:57: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 1ijSts-00030h-Op for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Dec 2019 18:57:52 +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 1ijSts-00030Z-Ff for pgsql-hackers@lists.postgresql.org; Mon, 23 Dec 2019 18:57: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 1ijStq-0002Er-A3 for pgsql-hackers@lists.postgresql.org; Mon, 23 Dec 2019 18:57: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 xBNIvlmd020152; Mon, 23 Dec 2019 13:57: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> <25383.1577112556@sss.pgh.pa.us> Comments: In-reply-to Amit Langote message dated "Tue, 24 Dec 2019 01:09:54 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <20150.1577127467.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 23 Dec 2019 13:57:47 -0500 Message-ID: <20151.1577127467@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Langote writes: > On Mon, Dec 23, 2019 at 23:49 Tom Lane wrote: >> Oh, interesting --- I hadn't been paying much attention to that thread. >> I'll compare your PoC there to what I did. > Actually, I should’ve said that your patch is much better attempt at > getting this in order, so there’s not much to see in my patch really. :) One thing I see is that you chose to relocate RelationGetPartitionDesc's declaration to partdesc.h, whereupon RelationBuildPartitionDesc doesn't have to be exported at all anymore. Perhaps that's a better factorization than what I did. It supposes that any caller of RelationGetPartitionDesc is going to need partdesc.h, but that seems reasonable. We could likewise move RelationGetPartitionKey to partcache.h. regards, tom lane