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 1owNK8-0002oD-GM for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2022 12:51:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1owNK5-00014Y-JW for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2022 12:51:53 +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 1owNK4-00014P-Ez for pgsql-hackers@lists.postgresql.org; Sat, 19 Nov 2022 12:51:53 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owNJu-0002k8-Fu for pgsql-hackers@postgresql.org; Sat, 19 Nov 2022 12:51:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 56D6B32000F9; Sat, 19 Nov 2022 07:51:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 19 Nov 2022 07:51:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1668862297; x= 1668948697; bh=jlZAP0kWV5cv2ugU1vETZIqLO8p1eAyvOJ+ZGfmtaFA=; b=k 1BnmUEjc62CzZ8Cy+sJlynLAHppzY87oEqdYFpFBY3TH9e1xu4rt0x2J61Syqxdr FVmXst0GN7VHo/EZHuWavPUmDa1GMOtTFUosdfZSQ67V956yBgMYAPYfRZNOwh9a TPPTrdB+9oODC4u6xcXazfeJSLcWIZgfOSon/t7KqQTAKaXe7OvpyDPmW7qJCFnN ChdHO88YuA+kMI7aMUaedAJqUN6fUb8jLWs2V9jokQ4AEDtw/RW9/T1JCi+/wcsD RPA1xNDp7vT2vNwC2nP5t/X/ge0Zef7tL5vQDyLMgFJGELwZCEJP4jR0wS9N52Fk XnxX8uD8/m07HtZaqIkEg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrhedvgdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfejudeuleefheeutddu feetjeevgeeiieeujeeuheefkedttdeuieeiieethfevnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 19 Nov 2022 07:51:36 -0500 (EST) Message-ID: Date: Sat, 19 Nov 2022 13:51:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Fix order of checking ICU options in initdb and create database Content-Language: en-US To: =?UTF-8?B?0JzQsNGA0LjQvdCwINCf0L7Qu9GP0LrQvtCy0LA=?= Cc: Marina Polyakova , pgsql-hackers@postgresql.org References: <534fed4a262fee534662bd07a691c5ef@postgrespro.ru> <205d3e3a-f726-be6b-c3bb-18333f432504@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.11.22 13:12, Марина Полякова wrote: >> I'm not in favor of changing this. The existing code intentionally >> tries to centralize the "ICU is not supported in this build" knowledge >> in few places. Your patch tries to make this check early, but in the >> process adds more places where ICU support needs to be checked >> explicitly. This increases the code size and also creates a future >> burden to maintain that level of checking. I think building without ICU >> should be considered a marginal configuration at this point, so we don't >> need to go out of our way to create a perfect user experience for this >> configuration, as long as we check somewhere in the end. > Maybe this should be written in the documentation [1] or --with-icu > should be used by default? As a developer I usually check something > with the simplest configure run to make sure other options do not > affect the checked behaviour. And some other developers in our company > also use simple configure runs, without --with-icu etc. Well, this isn't a hard rule, just my opinion and where I see the world moving. It's similar to --with-openssl and --with-lz4 etc.