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 1pT5g6-0005oK-JJ for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2023 18:41:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pT5g5-0000rr-08 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2023 18:41:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pT5g4-0000rh-HL for pgsql-hackers@lists.postgresql.org; Fri, 17 Feb 2023 18:41:48 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pT5fz-0001oI-Rs for pgsql-hackers@postgresql.org; Fri, 17 Feb 2023 18:41:47 +0000 Received: by mail-io1-xd35.google.com with SMTP id 79so918793iou.12 for ; Fri, 17 Feb 2023 10:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=J+4mLsL5jcw0qxr77BwyIPnvfMk6A42elTB538ziK8c=; b=NZ6c+Sad6dL10rxhnD7/nMJfFndNQFX9Bm7xu8KpIrwNnjzq8A9OT9rtigam0bg5Ht cBcRZUut5KWWGGFMyeOrS2y7oBE2icTUUqLajosLDU1cYgQp1zPjwjxrviXq1GPQdJeZ X73y223lj6KBlj47J++46SkDxMt4PNgBf/jST0+Ju6HVQ8nHSpBlH2tDtoLwCYsGP37C S8tZfJogqScwckAHX7IQIkT43AUTZo+/ywx2tfeD8iuvWKV9XDtaMw6rQBqmAeEZou3r yC09DwrbdEu0O7NS7UaRMWx9mHRufMK/BaFI8/FBvHRkjow0FqY73OHIAJgvdw27B0b/ 6rUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J+4mLsL5jcw0qxr77BwyIPnvfMk6A42elTB538ziK8c=; b=ZyEMVsU2HQaWgzoWArZvmvjT4oy9AlqrvvCxgPpWowCAt51xu9mwC8cJtWHC+I/3AI 9Vd3biamOTb2J8i0/DYQPz6sfUd2jspWRnTU39U5pSHl6Wjt4wwApjNK20mYwH+gYyqM 9SNkvjTaH8EuZLsGLy7NeVowoAJtiqtGYgVVUUkI5gtN2hmykmrOlGGaaVj8Ood16kZ3 2TfDe1XVdnT984WWkXxh8KGgcfs8ozIKOqVFCk1DUNs6rfNMUVOmOsiEV3W/xbzVgOau l5+mfuD/RK6+CHuohiC1u5tPtvDxJ/Elw9qree3+aFfWhzk+JQPh4F2UdBZN5ueS/jjl eeUA== X-Gm-Message-State: AO0yUKW4yV5Zv/8oNrSzGMzpf7MA7DsbLGsqq7uhEp4uuEsV+JeUNY0m t0I51fXMqft+ot0FU7hbX6Hy5w== X-Google-Smtp-Source: AK7set8ZVLN/LYPmxCGLSPNt4B5CZbI8Wq2u9U01nBQ7X7Wl3ctOCHBfNCCCiiErT8qlF1WdaN8uWg== X-Received: by 2002:a5e:c806:0:b0:73a:4134:aba8 with SMTP id y6-20020a5ec806000000b0073a4134aba8mr1554955iol.3.1676659301887; Fri, 17 Feb 2023 10:41:41 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d25-20020a6b6819000000b00743672fee2asm1680437ioc.35.2023.02.17.10.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 10:41:41 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 5102B8012A0; Fri, 17 Feb 2023 12:41:40 -0600 (CST) Date: Fri, 17 Feb 2023 12:41:40 -0600 From: Justin Pryzby To: Jeff Davis Cc: Andres Freund , Tom Lane , Thomas Munro , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: Move defaults toward ICU in 16? Message-ID: <20230217184140.GY1653@telsasoft.com> References: <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> <2a7feb71dbdcea31478b3974b8075982ac2326d2.camel@j-davis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a7feb71dbdcea31478b3974b8075982ac2326d2.camel@j-davis.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 17, 2023 at 09:01:54AM -0800, Jeff Davis wrote: > 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. > > > > 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. This came up before - I'm of the opinion that it's unsupported and/or useless to try to do anything on the new cluster between initdb and pg_upgrade. https://www.postgresql.org/message-id/20220707184410.GB13040@telsasoft.com https://www.postgresql.org/message-id/20220905170322.GM31833@telsasoft.com -- Justin