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 1wCKtC-001srj-1A for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 17:15:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCKtA-008AWN-1y for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 17:15:57 +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.96) (envelope-from ) id 1wCKtA-008AWD-14 for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 17:15:57 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wCKt9-00000000sGS-03io for pgsql-hackers@postgresql.org; Mon, 13 Apr 2026 17:15:56 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-483487335c2so51503155e9.2 for ; Mon, 13 Apr 2026 10:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776100554; x=1776705354; darn=postgresql.org; h=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=YUuberlSbTEKLePf2YP0akUrVWvN0JySxARan0vzEWE=; b=r8xzXI8imk/Y8nSn2d62RvSVfuqcDZpWST4m1aLFxWAAWIFEZ6aXMiTen6b8P8OdYo 5NDNyXS5qYq9R70lTW7ln5BaRh/nBdKLXaUpozVNvFYQcgUy9lCT/R40x06M9pbs9zfG mNH/GJbjlSp+BsGCtmBj1Ozox6q4YzsHOtyPBRBLEhLT0CggDmkjy6x6pHRSK0CUMQJW 04UCLhWdKehMnv7WrobDbvjdKvNUs9xhQMr6Jn+c3oSPxWMynpd1JuC+fMuLbUGjyA5u mr762ZszRjVOnPttlwxYy/0JhykR5X2QyBy7Xa+aj2wJgsyP4lANj+5Gd7hjQilYd4Al unkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776100554; x=1776705354; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YUuberlSbTEKLePf2YP0akUrVWvN0JySxARan0vzEWE=; b=nKX/LpB5OcH2FdXXiJClx/FcANyYhSdXqFpBaTqX0kHJGCzltmKRpkXwQysAxzftuU BvfkyxsBU2m1DQ9gS+QrnVDAkUGHujoA/tMDhGJ/aKHevzFwaO2jvVvvF5/EbjaQkQ8L buc25+X5/TArN+/HYbVv43b5c5XHAlv0WP+H4osMW3KPPtZGxqZVVPoy5FytSI7zPvFt gJRyXaiPenDhHDL0VKuliPWwoVYYakNZezIDa0lRnP5UtKC9Gf6XIOpEBVuCyCEKtqdL xmUYssxy4f9D4Zs87Kcia55cgMhbUMZybzKU2B4AUwqBdS46RDg4SqYmLFLW2wkHEPuX CY3g== X-Forwarded-Encrypted: i=1; AFNElJ/fH6BFvDBbi6E0WqqsQk5U47zLb2SGRfzJBTtPVPsXUva19HrgA3xVbwTk26jnJ0TWS9mTWJNBMALdz2lE@postgresql.org X-Gm-Message-State: AOJu0Yw22KQ1Uy2t2g1XzZeLokPZ50F7ckY2IOOceGL86rpJnJFMa0XA Fo4mZ+u5sqHzNmgjJBRXWI6lc9V8Y3kfr39zI40Lp2iLuYSL3f/oS1wy X-Gm-Gg: AeBDietrOgBxQ5nTOLQ7hEFGuj3pfBzgWjJ7Vcrk9J7deGLOfDIVHY2vkp25ZfIJX00 jCIjm0fwoM4iy809YjdlDlvXFvI6nOYDlEIHhRFOWhW4hWBHXGIKTSATOaZsHXz3Bz6mt3aHlvl tKZirj3rvgB/Qfd9S7wdQluV6E6oPkmH//ZuyhxTes7FEaEhXxIKNDuliPTecfA7JPBbHDAbpBG fRAuWNoNr8FSfq9Z5m89Ahn9k6TNTasBdyHY9aC1sx3hNkVGAR2bIhukpPztu+0mDv2Vvm6Vkz1 uv6C+/vsuqNTfleDNswPBcdJSRFb4u6E1b27e4uTfQgYKNFAbhSqVhN7wGS8vjfx7mvMzD1n7RG KbrJLAwbpSlnon5YUKFHG9p2QOKVQi9UtFeWQygRCSiSDRhHTT5hssu742PGvs04UEq7D02r8Nz W9GcGVqglSxtUxP234LyYpjZ2ZIfMS2bPikix5fD5jv54eOgYuBgXw4/x7yW3K5+LP3qk0G/nLX PMZWFVIieQq4Ru0d95Y42jBnclVHN67OcA92dnUTLwgAVdDiK2IVSaHmw== X-Received: by 2002:a05:600c:800f:b0:47e:e2eb:bc22 with SMTP id 5b1f17b1804b1-488d67b8d81mr188648405e9.5.1776100554080; Mon, 13 Apr 2026 10:15:54 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d73b44b3esm17433003f8f.13.2026.04.13.10.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 10:15:53 -0700 (PDT) Date: Mon, 13 Apr 2026 17:15:52 +0000 From: Bertrand Drouvot To: David Geier Cc: Peter Eisentraut , Heikki Linnakangas , Matthias van de Meent , pgsql-hackers Subject: Re: Reduce build times of pg_trgm GIN indexes Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e6e33a8-9177-45d4-b830-992c1fb5e992@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Apr 13, 2026 at 05:03:11PM +0200, David Geier wrote: > Hi! > > On 13.04.2026 13:04, Bertrand Drouvot wrote: > > Hi, > > > > 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! Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com