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 1nyNJ3-00023v-92 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2022 00:42:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nyNJ1-0008JV-A7 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2022 00:42:47 +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 1nyNJ0-0008FS-UA for pgsql-hackers@lists.postgresql.org; Tue, 07 Jun 2022 00:42:47 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyNIy-0004ML-K0 for pgsql-hackers@postgresql.org; Tue, 07 Jun 2022 00:42:45 +0000 Received: by mail-pg1-x52f.google.com with SMTP id s68so14328901pgs.10 for ; Mon, 06 Jun 2022 17:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardentperf-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:subject:from:in-reply-to:cc :date:message-id:references:to; bh=iAWhxqTUcuqPGbpdIHKJ54t2G+pXxNrcxYTbc4tUR4I=; b=VesdqHBY4IFF4jbdFczNFpYMUzrswGjMFYjgHKYBC44h7D2PT59nmzHP8A0fV/6zPn 8ZEsk5ltfWBWXDWYZRuOby+JHiWZJ5svxcgJ6Iwt9/K+BLes5AIJ1iefitBRR5gWazU9 8PGNviP+LMM0P+o3nE6aBeSQEimzoHkPVvggJGThvwdLH2eIJPxrHtZEUGkFw78gLaYl CPSjkBquv5/sieTqEak9hs015+GNGGNXev4l//NDZVTPpBvvU1h7WXhxnMijCta0uCnK xVkEvnLBK60d2RXAuI6JeoOcU+AoL7oUWZwhVxidLktoo8bCROHyrhnlDUsvWGktlxFR KWqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:mime-version:subject :from:in-reply-to:cc:date:message-id:references:to; bh=iAWhxqTUcuqPGbpdIHKJ54t2G+pXxNrcxYTbc4tUR4I=; b=QbpDcQQ2XHlGsZRjXYtx8GGOr9VZVngLWC7i1t0lNyRvNIrsRPb+v6Zm6c6kpRkdjE 4uzgc+4NdPzc6+uk47SRpEK7Di1hK0ZTqUgUx7nF82WixkkNNbROuNXbTEACMDzRovUl xy4t5viM1knrmUMMW9V4q/Q5873Iq5cb76fGyCfP4H2YnBYjJlicVmfVY96wjwv3samb PIRMb0ZzZQZU8kuuc/5GoIZarXHLF60azf4q1LvNyNu0XpZStC/mlQHbM2e0SP9eQTaX Oepk1XanBuMnC6EufZOH9fas+IhCvM+6CZB5BtLWqCZc/mah7034JbVIN9panxU4gAQS sY3w== X-Gm-Message-State: AOAM532Idipu3mw2M1jjuh0/8XbutY+H02M/MrSSk6pa+eHG5zQNI5gV 7oWPKBuzvEKjy8NQZoKnvkOfMlHuNHureQ== X-Google-Smtp-Source: ABdhPJwTmeHYXHfN9+W2Gf3rhursbPgM+K2kWdEPRKaE8RKMg04/77ZSnuPBg65KXz/VHjww6bYbNA== X-Received: by 2002:a05:6a00:1307:b0:50d:b02e:11df with SMTP id j7-20020a056a00130700b0050db02e11dfmr27383907pfu.4.1654562563545; Mon, 06 Jun 2022 17:42:43 -0700 (PDT) Received: from smtpclient.apple (c-24-17-46-25.hsd1.wa.comcast.net. [24.17.46.25]) by smtp.gmail.com with ESMTPSA id t5-20020a170902e84500b00163ffe73300sm11300116plg.137.2022.06.06.17.42.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 17:42:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Collation version tracking for macOS From: Jeremy Schneider In-Reply-To: <0867fe37-abbd-77ba-aafc-572074978bb0@amazon.com> Cc: Tom Lane , Thomas Munro , Peter Eisentraut , pgsql-hackers Date: Mon, 6 Jun 2022 17:42:41 -0700 Message-Id: <127AA2FF-F097-464D-B8D6-761141EF504D@ardentperf.com> References: <0867fe37-abbd-77ba-aafc-572074978bb0@amazon.com> To: Jim Nasby X-Mailer: iPhone Mail (19F77) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jun 6, 2022, at 17:10, Jim Nasby wrote: > =EF=BB=BFIgnoring 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 s= witch engines. Well now, let=E2=80=99s be clear, I was the one who called my email a =E2=80= =9Crant=E2=80=9D. =F0=9F=99=82 And I do apologize for that - it was grumpy and impulsive and Tom isn=E2=80=99= t wrong that rants don=E2=80=99t usually help move things forward. Thomas - thanks for the link back to one of the threads. I spent some time r= eading through that and it=E2=80=99s a lot of material; I haven=E2=80=99t re= ad the whole thread yet. If you have some others that would also be particul= arly good background, let me know. I=E2=80=99m doing a chunk of this in my s= pare time at the moment, but I do want to keep getting more up to speed. I w= as pulled into a bunch of various things related to PostgreSQL and ICU and c= ollation and OS=E2=80=99s over the past couple years, so I learned a lot fro= m on-the-ground experience and I am interested in trying to get a little mor= e involved in the conversation here. Personally, I really do think there should at least be an *option* to tell t= he DB to fully error rather than just warn on version mismatch. Correctness m= atters to many users, and being able to *trust* string comparisons are corre= ct is pretty damn fundamental all throughout a database. It really doesn=E2=80= =99t get any more basic and the potential for bad things to happen is pretty= astronomical, if you can=E2=80=99t trust those. I understand the consternat= ion about dealing with upgrades of large & busy databases, but I=E2=80=99m s= till surprised that the community consensus arrived at the present behavior,= and I have a lot of reading to do, to really understand how that happened a= nd where the dialogue is today. Multiple versions of ICU sounds nice for users who need real linguistic coll= ation (like what Oracle and DB2 offer), but I still feel like there needs to= be a super simple basic =E2=80=9Cpseudo-linguistic=E2=80=9D collation baked= in, that=E2=80=99s =E2=80=9Cgood enough=E2=80=9D for 99% of users and that i= s guaranteed to be the same everywhere on every platform and just won=E2=80=99= t ever change. I think glibc needs to be phased out somehow. At a minimum, n= ot the default for new users=E2=80=A6 to stop the bleeding. If MySQL wasn=E2= =80=99t GPL then I=E2=80=99d say to just copy their collations. I=E2=80=99d b= e reluctant to spend too much time on a POC now though, it feels like my ide= a is the outlier and the general PG hacker consensus would be to reject this= idea. (But maybe I=E2=80=99m wrong?) Anyway, again, apologies for my pants-on-fire email last week. I hope I can e= njoy a few beers someday - or coffee for the non-drinkers - with a few other= PG collation nerds (which I never set out to be, but it may have befallen m= e ). -Jeremy Sent from my TI-83