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 1ijoCG-0003Oy-VB for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2019 17:42:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijoCF-0007Tc-Kv for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2019 17:42:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijoCF-0007TV-8I for pgsql-hackers@lists.postgresql.org; Tue, 24 Dec 2019 17:42:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijoCC-0005oG-Uj for pgsql-hackers@lists.postgresql.org; Tue, 24 Dec 2019 17:42:14 +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 xBOHgBPV003229; Tue, 24 Dec 2019 12:42:11 -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> <26572.1577113220@sss.pgh.pa.us> Comments: In-reply-to Amit Langote message dated "Tue, 24 Dec 2019 10:20:28 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3227.1577209331.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Dec 2019 12:42:11 -0500 Message-ID: <3228.1577209331@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Langote writes: > On Tue, Dec 24, 2019 at 12:00 AM Tom Lane wrote: >> BTW, I forgot to mention: while I think the patch to forbid pseudotypes >> by using CheckAttributeType() can be back-patched, I'm leaning towards >> not back-patching the other patch. The situation where we get into >> infinite recursion seems not very likely in practice, and it's not >> going to cause any crash or data loss, so I think we can just say >> "sorry that's not supported before v13". The patch as I'm proposing >> it seems rather invasive for a back-branch fix. > It is indeed. > Just to be sure, by going with "unsupported before v13", which one do yo= u mean: > * documenting it as so > * giving an error in such cases, like the patch in the first email on > this thread did > * doing nothing really I was thinking "do nothing in the back branches". I don't believe we can detect such cases reliably (at least not without complicated logic, which'd defeat the point), so I don't think giving an error is actually feasible, and I doubt that documenting it would be useful. If we get some field complaints about this, it'd be time enough to reconsider. regards, tom lane