Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1seywG-00FELz-9h for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Aug 2024 15:32:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1seywE-0066K4-LU for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Aug 2024 15:32:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1seywD-0066Jv-09 for pgsql-hackers@lists.postgresql.org; Fri, 16 Aug 2024 15:32:26 +0000 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1seyw9-005AkG-Ss for pgsql-hackers@lists.postgresql.org; Fri, 16 Aug 2024 15:32:24 +0000 Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 86DC11146FED; Fri, 16 Aug 2024 11:32:19 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 16 Aug 2024 11:32:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1723822339; x=1723908739; bh=FN4CB0UriRr21wunR+3HXiaVvyuCq0rw 0ycLanAZrUE=; b=kG2b9riA3Akmf+iF307frWTHjmMjVjm7puVTXtdMJYD3bE2p N3gEu+VMZQfJ/pG8F9dWRKyPuEqitMTq0fFNY+dD4n52ZGaXZT+tPGar+qw1jsIB qXO3g5ISZ8AXE2Ja6ov7ucyS+z0Hxbh14CWLEx6D7FosDITuqg34D7nOcngp/SOY oH9VHCZ6jEeLFNbq27zqIfQcIy0kyAxLdzTwxH4JaAbP2NcN+x0pAGhZIINT8zIr dJaW8QWBh0X0h2hkI/+9VV1c0PkFPRR78g4rA7C01VRWzJWkssFH7HP2kJFXmZJB IyMDI0xULXW/WYuRE5gIXFW6CsHnXmdGjQ3bgg== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1723822339; x= 1723908739; bh=FN4CB0UriRr21wunR+3HXiaVvyuCq0rw0ycLanAZrUE=; b=Z 5g48mU0THT5q49mUVAQX9HX7mdGEJaoTVAthlJeZtPG4NNu6sLapu0cJOOIflpbf fZ/5p0tHlX37/5YWCsErGlkKT1uXItlSe/IeuebeIWwpMwnoXLqulNNRye5XNJnD ckZrVJJu64NMmdfF4nxoG97ZzUwHhY61DeUaLv9IBizkiGfVzqkDEplh0GYaOn90 uITzY8RVLHFK+CNAbNENdNKt0s3r/uHojlJ8rbSneFRxi172nn90E2SsHOrw2NnN 9TuAG6+EDQZcYq/2k90cowWWzcccdGxFrRmTOM0F1V9/X5Pu17zC8nm3BODt3aRk yhoxs0yjvLGRlTNEL05nw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddtkedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepjefhveehtdetgfffhffhfeef gffghffflefgieeuueekhedvhedvfeehffdvfeeunecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdho rhhgpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope htohhmrghssehvohhnughrrgdrmhgvpdhrtghpthhtoheprghnughrvghssegrnhgrrhgr iigvlhdruggvpdhrtghpthhtohepsghovghkvgifuhhrmhdophhoshhtghhrvghssehgmh grihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdr phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Aug 2024 11:32:18 -0400 (EDT) Message-ID: <46d8ba1e-d9e1-4ae1-ba53-2bc67a4ae3cd@eisentraut.org> Date: Fri, 16 Aug 2024 17:32:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Parallel CREATE INDEX for BRIN indexes To: Tomas Vondra Cc: Andres Freund , Matthias van de Meent , PostgreSQL Hackers References: <99f9ecbe-0976-8012-67b5-dbff58c7dbec@enterprisedb.com> <32e3f645-389d-87f9-2ce7-33d0087f47d4@enterprisedb.com> <3733d042-71e1-6ae6-5fac-00c12db62db6@enterprisedb.com> <20240413083635.47yve2c5pp2xt5b6@awork3.anarazel.de> <4a9c0545-6697-47d3-bf7c-2f5d0d7a7319@enterprisedb.com> <1df00a66-db5a-4e66-809a-99b386a06d86@enterprisedb.com> <86763810-70a1-4872-8ba7-1676f788e5a2@eisentraut.org> <618bc573-a0df-4ea9-bb71-aecff104c5f5@vondra.me> From: Peter Eisentraut Content-Language: en-US In-Reply-To: <618bc573-a0df-4ea9-bb71-aecff104c5f5@vondra.me> 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 16.08.24 11:22, Tomas Vondra wrote: >> These pageinspect tests added a new use of the md5() function.  We got >> rid of those in the tests for PG17.  You could write the test case with >> something like >> >>  SELECT (CASE WHEN (mod(i,231) = 0) OR (i BETWEEN 3500 AND 4000) THEN >> NULL ELSE i END), >> -       (CASE WHEN (mod(i,233) = 0) OR (i BETWEEN 3750 AND 4250) THEN >> NULL ELSE md5(i::text) END), >> +       (CASE WHEN (mod(i,233) = 0) OR (i BETWEEN 3750 AND 4250) THEN >> NULL ELSE encode(sha256(i::text::bytea), 'hex') END), >>         (CASE WHEN (mod(i,233) = 0) OR (i BETWEEN 3850 AND 4500) THEN >> NULL ELSE (i/100) + mod(i,8) END) >> >> But this changes the test output slightly and I'm not sure if this gives >> you the data distribution that you need for you test.  Could your check >> this please? >> > > I think this is fine. The output only changes because sha256 produces > longer values than md5, so that the summaries are longer the index gets > a page longer. AFAIK that has no impact on the test. Ok, I have committed that. Thanks for checking.