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 1pXfNd-0006En-W9 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Mar 2023 09:37:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pXfNb-0001VC-Oo for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Mar 2023 09:37:39 +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 1pXfNa-0001V3-Md for pgsql-hackers@lists.postgresql.org; Thu, 02 Mar 2023 09:37:39 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pXfNW-0004XJ-L7 for pgsql-hackers@postgresql.org; Thu, 02 Mar 2023 09:37:38 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 7B3D62B07AED; Thu, 2 Mar 2023 04:37:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 02 Mar 2023 04:37:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1677749850; x=1677757050; bh=c6pj0AzqBW00ZqrkehGKF6ysU+fxI10f/Pv mq/vsCGo=; b=Hw/sDcY1Vr1UhhKjXB6zL6+uGu8uW+C3r3MGOozlmFJ/I1qaA37 d5+49RdbNrqZlhKyvI2eR9lwqzsydWKaNpnylSWaac5YvETOLGzWJ+HzpVyOcThZ 0JzLPNJqI3GXgxC7O5HSSdK31NtEVyqoaDdM6rOTQ0QMeLd98Y2tvFVflssTvRU5 W6lVKXNw6gOnAdSIr1LbIWuyoBF82m0fPsZOe9PHAtUL3xAbeAyv+1BacrFUkQnZ VjsDilbcnjZKRN7iSq1RnZLlv4P4Ey78l1bEpbTh9VccG1jcbJJXFm4Xy8Hbqf/d LePHtFmSPnhV7qtJTqwEDO77QzcN6NjsKTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeljedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpedvveejgfejfeehfeeu ueekudelfffhjeejtddtleevieffuddvgefgteevjefhleenucffohhmrghinhepphhosh htghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvg gusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Mar 2023 04:37:28 -0500 (EST) Message-ID: Date: Thu, 2 Mar 2023 10:37:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Move defaults toward ICU in 16? Content-Language: en-US To: Jeff Davis , Andres Freund , Bruce Momjian Cc: Tom Lane , Thomas Munro , Robert Haas , pgsql-hackers@postgresql.org References: <5ffeafe843d43a975f31479fbd211ab88404841b.camel@j-davis.com> <20230211020042.uthdgj72kp3xlqam@awork3.anarazel.de> <20230214175957.idkb7shsqzp5nbll@awork3.anarazel.de> <2a7feb71dbdcea31478b3974b8075982ac2326d2.camel@j-davis.com> <20230217170523.ujnq3qr75rolfrmu@awork3.anarazel.de> <20230217180909.oqxjgjudbsofn666@awork3.anarazel.de> <3bf6b5517033947c134ed1ba9a325179a608bfd1.camel@j-davis.com> <20230217205009.4sy4lmmqanbhjsgb@awork3.anarazel.de> <558f794c351fb73596e4b05d96f66d01d56b4a50.camel@j-davis.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 25.02.23 00:54, Jeff Davis wrote: > On Fri, 2023-02-17 at 15:07 -0800, Jeff Davis wrote: >> 2. Update the pg_database entry for template0. This has less >> potential >> for surprise in case people are actually using template0 for a >> template. > > New patches attached. > > 0001: default autoconf to build with ICU (meson already uses 'auto') I would skip this. There was a brief discussion about this at [0], where I pointed out that if we are going to do something like that, there would be other candidates among the optional dependencies to promote, such as certainly openssl and arguably lz4. If we don't do this consistently across dependencies, then there will be confusion. In practice, I don't think it matters. Almost all installations are made by packagers, who will make their own choices. Flipping the default in configure is only going to cause some amount of confusion and annoyance in some places, but won't actually have the ostensibly desired impact in practice. [0]: https://www.postgresql.org/message-id/flat/534fed4a262fee534662bd07a691c5ef%40postgrespro.ru > 0002: update template0 in new cluster (as described above) This makes sense. I'm confused what the code originally wanted to achieve, e.g., -/* - * Check that every database that already exists in the new cluster is - * compatible with the corresponding database in the old one. - */ -static void -check_databases_are_compatible(void) Was there once support for the new cluster having additional databases in place? Weird. In any case, I think you can remove additional code from get_db_infos() related to fields that are no longer used, such as db_encoding, and the corresponding struct fields in DbInfo. > 0003: default initdb to use ICU What are the changes in the citext tests about? Is it the same issue as in unaccent? In that case, the OR should be an AND? Maybe add a comment? Why is unaccent is "broken" if the default collation is provided by ICU and LC_CTYPE=C? Is that a general problem? Should we prevent this combination? What are the changes in the ecpg tests about? Looks harmless, but if there is a need, maybe it should be commented somewhere, otherwise what prevents someone from changing it back?