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 1p1DuL-0003T6-T4 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Dec 2022 21:49:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p1DuK-00040w-P6 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Dec 2022 21:49:20 +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 1p1DuK-00040n-Gj for pgsql-bugs@lists.postgresql.org; Fri, 02 Dec 2022 21:49:20 +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 1p1DuI-0003lU-A8 for pgsql-bugs@postgresql.org; Fri, 02 Dec 2022 21:49:19 +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 2B2LnGp72137319; Fri, 2 Dec 2022 16:49:16 -0500 From: Tom Lane To: Jeff Davis cc: Richard Guo , pgsql-bugs@postgresql.org Subject: Re: hashing bpchar for nondeterministic collations is broken In-reply-to: References: Comments: In-reply-to Jeff Davis message dated "Fri, 02 Dec 2022 13:21:08 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2137317.1670017756.1@sss.pgh.pa.us> Date: Fri, 02 Dec 2022 16:49:16 -0500 Message-ID: <2137318.1670017756@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > But assuming someone does use that combination of features in 15.1, and > we release 15.2 with my fix in it, then the consequences could be > severe: a pg_dump with default options on their bpchar- > nondeterministic-collation-hash-partitioned table in 15.1 would be > unrestorable in 15.2. They'd need to take a new pg_dump from 15.1 with > "--load-via-partition-root" and then restore it in 15.2. Obviously that > would be bad in any case, but it's more tolerable going between servers > of different major versions. Yeah. Also, do we have this issue with hash indexes? If so reindexing might be necessary, which again would be more palatable in a major release. > So, given that this fix is unlikely to help many people in 15 and > earlier, and that there's a chance that the fix is really painful for > someone; I'm electing not to backpatch it. +1 regards, tom lane