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.96) (envelope-from ) id 1wCZyh-0027vz-0a for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2026 09:22:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCZyf-00B2Aw-1Y for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2026 09:22:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wCZyf-00B2Ao-0c for pgsql-hackers@lists.postgresql.org; Tue, 14 Apr 2026 09:22:38 +0000 Received: from meesny.iki.fi ([2001:67c:2b0:1c1::201]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wCZyd-00000000wok-2hXp for pgsql-hackers@postgresql.org; Tue, 14 Apr 2026 09:22:37 +0000 Received: from [10.0.2.15] (unknown [130.41.208.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4fvzM810PKzyRs; Tue, 14 Apr 2026 12:22:28 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1776158548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LJjKrIc6SZ6gbXHgHxDuvGhva2YP+gm9fC+Zv1FdPGc=; b=Uz+kcuF4jtc1rr5v8MWv5NwBLS1WMCfcTTo7joY9I4ZPIfDvBWPYCrcvBrTD0nBAFulhy1 X327TcIhC6995Uwa9pb1L1859rzowTSGggiWI0SHmaoU/GGOlOrOvEewECc5ah0f4Omp7R p9zRFK3zXoxCq/7m84u9tCsI4R0lOuA= ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1776158548; b=PzIjCU+b/UcAJtx9dAq/LwreyYP0Gj5Gzjykxra9fkfk2U2JcQ24Y1MIW3NqHXzDX5pWpD 495RpZpALWFNT0g2Yhq+vElFgaGOtavvaAeCjJET8yAPt1fwxBRqbS7OVvgwrIsLj4DXQA sVeW25O2Xfq3xF0vb/04N3UQmb0M74g= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1776158548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LJjKrIc6SZ6gbXHgHxDuvGhva2YP+gm9fC+Zv1FdPGc=; b=nnazUrxQYqRU9YB9oZ5MdlgdePcTg811n7VHrodX4ON8SSD1g6ukgbE2SO15zXvSV/p5P0 RBHdNi9TdrzpJMNHfaFNnSsCZiKdfVbsw3SiIUpe3XffeSN2Zc+J+IMQEz2mklKeIdMVcs TKljulz1Ekk4EZwMJYFsH4zIagU3NQ4= Message-ID: <2835e53a-23d6-4999-bca0-0cb27c848319@iki.fi> Date: Tue, 14 Apr 2026 12:22:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reduce build times of pg_trgm GIN indexes To: Bertrand Drouvot , David Geier Cc: Peter Eisentraut , Matthias van de Meent , pgsql-hackers References: <66620ec7-0f81-4813-9cf1-b901a56efcc3@gmail.com> <2a76b5ef-4b12-4023-93a1-eed6e64968f3@gmail.com> <6439c655-e281-409d-b884-6586750d5820@iki.fi> <2a2f9cb0-f00d-413c-8517-4a3ad220d104@eisentraut.org> <7e6e33a8-9177-45d4-b830-992c1fb5e992@gmail.com> Content-Language: en-US From: Heikki Linnakangas 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 13/04/2026 20:15, Bertrand Drouvot wrote: > On Mon, Apr 13, 2026 at 05:03:11PM +0200, David Geier wrote: >> On 13.04.2026 13:04, Bertrand Drouvot wrote: >>> On Mon, Apr 13, 2026 at 11:41:02AM +0200, Peter Eisentraut wrote: >>>> On 09.04.26 13:28, Bertrand Drouvot wrote: >>>>> >>>>> This commit makes use of StaticAssertStmt() that has been deprecated in >>>>> d50c86e74375. The attached, fixes it. >> >> I cannot find a comment close to StaticAssertStmt() that says it got >> deprecated. > > The comment on top of it's definition is: > > " > /* > * StaticAssertStmt() was previously used to make static assertions work as a > * statement, but its use is now deprecated. > */ > " > >> Is the goal to completely get rid of StaticAssertStmt()? > > According to its comment, I'd say so. > >>> Yeah that looks better to not lose the connection with palloc0_array() here. >>> Done that way in the attached and adding new braces to avoid warning from >>> -Wdeclaration-after-statement. >> >> Looks good to me. > > Thanks for looking at it! Committed this StaticAssertStmt/Decl() fix, thanks - Heikki