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 1pT47e-0007OE-4T for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2023 17:02:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pT47d-00070P-0d for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2023 17:02:09 +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 1pT47c-0006pn-GB for pgsql-hackers@lists.postgresql.org; Fri, 17 Feb 2023 17:02:08 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pT47U-0004nV-OP for pgsql-hackers@postgresql.org; Fri, 17 Feb 2023 17:02:07 +0000 Received: by mail-pl1-x62f.google.com with SMTP id q15so2699025plx.13 for ; Fri, 17 Feb 2023 09:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=1E6yQAnb7yBx3YxDAK0Jy1IMWW/R53SvGOs0OtoIkK0=; b=ETDIbTviXmWtwBAgwyiEAfaZbZSH+wd28Sl7K9webDru0KE0vAnwIHntgpXre4AZDt Z7mexlbPKX7GjtQrSNtIQkyAf5gNJ7lM97kFiy3h0wgQmiK/Q9kSxheIJfBJc2vPrpSl gx05ROs3AxQr1p0a0nNliB1AwCIQIh20eindu+wjNuByJ2OCG3kvAPTAzPITiRPyF4/O CmLEm8x1e2GckG3yaE6lYD1RwAgEZtqjpXaRHA1LlgIwETXSyPoIjtQrUodvLCYcuef/ uOglA+c41TIOvNDvMWqUTPpvBmYNywqmF2y1wkHuYMjNKMBsoMdU9q+iHOqp1VUWMpTG Vupw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1E6yQAnb7yBx3YxDAK0Jy1IMWW/R53SvGOs0OtoIkK0=; b=ZrZF52qnotB4+iGvic9voMantE9uy3civ8shQHQgpO3bVpLva80nhXnXJex0t00l5J TW6FJ93L+XLMvTZnMyVUhg6M6r0/+yFlCUZaSE2Ivc6o8jq3ub3+bhFbp9AjuCytJ+XR e2qc21fj1AEc1xg8UMw1xAuGbvKFauodz4oVoPNZi82mUg2gnX6kSwBN39lylmPdF6yo Qlu+bP1okuoipOvpc0MfNhlrX2a0KFQf78l8lDCt47Q74xT3DI5QrtQGwz34ZSuMKy9c xMH6kabAcjpgDc7/pmPtx2gsF7dP8nvYmgYr//hZnCXT/QxvRAQiRzHmAYFAe+RmjkOI GxBA== X-Gm-Message-State: AO0yUKX+dKXgFX6S5L4S4A0nORgwE4L4vbQbMA0zY9xrzn0hS+HGMjt7 d6jYIPGsXlkIy9Pbvr9wLEbNfA== X-Google-Smtp-Source: AK7set/nNc3apsnzlKg5jluu777NNqU9tw35mJWcj3PPPoXLsLuOHX/6KGwjl3gqUzUPWDjuBkI8Pg== X-Received: by 2002:a17:902:d2c7:b0:198:b284:c2ca with SMTP id n7-20020a170902d2c700b00198b284c2camr1581973plc.51.1676653319623; Fri, 17 Feb 2023 09:01:59 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id ix10-20020a170902f80a00b00196251ca124sm3387262plb.75.2023.02.17.09.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 09:01:58 -0800 (PST) Message-ID: <2a7feb71dbdcea31478b3974b8075982ac2326d2.camel@j-davis.com> Subject: Re: Move defaults toward ICU in 16? From: Jeff Davis To: Andres Freund Cc: Tom Lane , Thomas Munro , Robert Haas , pgsql-hackers@postgresql.org Date: Fri, 17 Feb 2023 09:01:54 -0800 In-Reply-To: References: <510d284759f6e943ce15096167760b2edcb2e700.camel@j-davis.com> <1590310.1675379449@sss.pgh.pa.us> <337d581bae5d6253919f70acdfc184631f0ad41b.camel@j-davis.com> <20230209022234.gihj4apas6ycaddq@awork3.anarazel.de> <5ffeafe843d43a975f31479fbd211ab88404841b.camel@j-davis.com> <20230211020042.uthdgj72kp3xlqam@awork3.anarazel.de> <20230214175957.idkb7shsqzp5nbll@awork3.anarazel.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2023-02-17 at 00:06 -0800, Jeff Davis wrote: > On Tue, 2023-02-14 at 09:59 -0800, Andres Freund wrote: > > I am saying that pg_upgrade should be able to deal with the > > difference. The > > details of how to implement that, don't matter that much. >=20 > To clarify, you're saying that pg_upgrade should simply update > pg_database to set the new databases' collation fields equal to that > of > the old cluster? Thinking about this more, it's not clear to me if this would be in scope for pg_upgrade or not. If pg_upgrade is fixing up the new cluster rather than checking for compatibility, why doesn't it just take over and do the initdb for the new cluster itself? That would be less confusing for users, and avoid some weirdness (like, if you drop the database "postgres" on the original, why does it reappear after an upgrade?). Someone might want to do something interesting to the new cluster before the upgrade, but it's not clear from the docs what would be both useful and safe. Regards, Jeff Davis