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 1nyMoP-0000jc-NI for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2022 00:11:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nyMoN-0001n0-J3 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2022 00:11:07 +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 1nyMoM-0001mq-UB for pgsql-hackers@lists.postgresql.org; Tue, 07 Jun 2022 00:11:07 +0000 Received: from smtp-fw-9103.amazon.com ([207.171.188.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyMoF-00047q-Dt for pgsql-hackers@postgresql.org; Tue, 07 Jun 2022 00:11:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1654560659; x=1686096659; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=ws1qH2zM0IX9eUm7yyHOqgkMdr2yqw5ysDP3qsjEKXs=; b=TRI7yblLF7or7jTvfWp4ymIB0AVlEpKuRqn075KxXX+4MYeKvjDQnjT8 rEubPJdk62RQtYvtkKFHVBb8ATYnL06rw0sqX+AeGKw5SYVchngawfESc +QehcuLNWoA7oiskoqXDPKloxx/8Tvk98kGgfC9AuvgKi0lSsq/PGrqoG U=; X-IronPort-AV: E=Sophos;i="5.91,282,1647302400"; d="scan'208";a="1022110699" Subject: Re: Collation version tracking for macOS Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-a31e1d63.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP; 07 Jun 2022 00:10:41 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-a31e1d63.us-east-1.amazon.com (Postfix) with ESMTPS id 34F358EDD7; Tue, 7 Jun 2022 00:10:40 +0000 (UTC) Received: from EX13D22UWC002.ant.amazon.com (10.43.162.29) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Tue, 7 Jun 2022 00:10:39 +0000 Received: from [10.119.125.127] (10.43.161.244) by EX13D22UWC002.ant.amazon.com (10.43.162.29) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Tue, 7 Jun 2022 00:10:39 +0000 Message-ID: <0867fe37-abbd-77ba-aafc-572074978bb0@amazon.com> Date: Mon, 6 Jun 2022 19:10:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US To: Tom Lane , Thomas Munro CC: Jeremy Schneider , Peter Eisentraut , pgsql-hackers References: <381977b1-0898-cb6f-a427-3b5d873e81bd@enterprisedb.com> <231072.1654273317@sss.pgh.pa.us> <1874de62-6bec-4bc1-1d14-0a2730b125da@ardentperf.com> <366234.1654289888@sss.pgh.pa.us> From: Jim Nasby In-Reply-To: <366234.1654289888@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.161.244] X-ClientProxiedBy: EX13D25UWC003.ant.amazon.com (10.43.162.129) To EX13D22UWC002.ant.amazon.com (10.43.162.29) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/3/22 3:58 PM, Tom Lane wrote > Thomas Munro writes: >> On Sat, Jun 4, 2022 at 7:13 AM Jeremy Schneider >> wrote: >>> It feels to me like we're still not really thinking clearly about this >>> within the PG community, and that the seriousness of this issue is not >>> fully understood. >> FWIW A couple of us tried quite hard to make smarter warnings, and >> that thread and others discussed a lot of those topics, like the >> relevance to constraints and so forth. > I think the real problem here is that the underlying software mostly > doesn't take this issue seriously. Unfortunately, that leads one to > the conclusion that we need to maintain our own collation code and > data (e.g., our own fork of ICU), and that isn't happening. Unlike > say Oracle, we do not have the manpower; nor do we want to bloat our > code base that much. > > Short of maintaining our own fork, ranting about the imperfections > of the situation is a waste of time. The first step to a solution is admitting that the problem exists. Ignoring broken backups, segfaults and data corruption as a "rant" implies that we simply throw in the towel and tell users to suck it up or switch engines. There are other ways to address this short of the community doing all the work itself. One simple example would be to refuse to start if the collation provider has changed since initdb (which we'd need to allow users to override). A more sophisticated option would be to provide the machinery for supporting multiple collation libraries. Both of those at least ensure that users are aware any time there's a problem, which IMO is *enormously* better than letting core functionality silently stop working.