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 1wCIos-001qo0-2u for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 15:03:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCIop-007RVy-1f for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 15:03:20 +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 1wCIop-007RVo-0b for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 15:03:20 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wCIoo-00000000r43-0C4V for pgsql-hackers@postgresql.org; Mon, 13 Apr 2026 15:03:19 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-488a041eae5so33295345e9.1 for ; Mon, 13 Apr 2026 08:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776092595; x=1776697395; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u1NXUZw1Lum1KDFqzdk6DQBfQapcWvRcQ0WDZtvrT8Y=; b=ZHUDfxYGWDpbdxnll/V4RrgyQCDGL7D7wk9ZQMXAL3iUXYYEGNjns9QVS/DU9VUDfu Z/mHjVHSg/DE/21NU0gD3xbgd5Gfw22zZqq4bKntov3bAS8qJYPv9FqOsymoqghUyoOU grpeOV+y7f/itFQRhOMI47/uBNiP0QmDFc4XV2vaj/bV90qgdypbz9N3wJDP60RBXnsI 5GBzHBLSICDiuY7Nz010Ieb7RPp0MQN5a7aGBhn5CzdnycA7otd5K+OuVBIrzmDd+Hez uRtL3iED8uCaXZwxB/g9v6n5Nsa3B3ZvXXTPAqAo3pc4nzBdRFUcNU9/Y7LblsMWTjq+ YLTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776092595; x=1776697395; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u1NXUZw1Lum1KDFqzdk6DQBfQapcWvRcQ0WDZtvrT8Y=; b=UZtj+TxbbEka5Lf2QWR+L4t+bock2YxpNsPI3gflQe66WZqVkbX3hjL/gRYTb/zwvm VUceHUv86UjJNlb/YF1ryDif/zKxy7SC6AB6uzuKUIl/HVLtKZI6Y/QMGGcFQkT/QayU HZhzR5iSy8nd9v2zZ3MmOrLuaKo5Micxydgw87+tVMRxCtwBT876Sf/e/S9UToBA/dbb iFB39tgg2UlzaSFeZ5ztxfLeMz0xH+8IJKVK9RSIPeSJ9wtCkTXZB6CLzX/KnXUJXoF/ rpgtd/UOmMcCxukW2p+DRyDo68i/uG6eF6PYAkp+cjZyhulhF56rCQl9EeGtxyPbp/9f iooA== X-Forwarded-Encrypted: i=1; AFNElJ+Ce1pV3dgjnRdNqo5Lr9Vp9OsJ2ss0tgVjS+qRGVR7TUbey8Q+9IpRsApvL8B2nxUkYS/VKMcWCtFXsKh/@postgresql.org X-Gm-Message-State: AOJu0Yw8PigsAuVtthTRfFmMOvpqSdrwDAyPDG3/m+cUGNzISRSdB3sT XyHw1DqT1Z3qPhvN3GXcNHXMkCDh4PZ/axYSAkNVN9G1d+PBLppTKps2 X-Gm-Gg: AeBDievS+LGIq95aShYG2299cvQO93lSO6C0dDpRlzIxw4YqoprqaE18UYjPP8OvxK9 4PJQUmONvtOyCzaKmBrEsZUhyJ8rijWDJSlmqovQPyrI8btuKpPQYA67bXSzLHO+3gf7izgS+OY b4FVmFn3xv2UUzxhiGFmu60XZq9Wp8swflUIlL5pG0yuVMM6xj+MuIOSXimoE+0Am9YEvFpqxXs VEu3JbSTUcHzXnL2Hdcw+bMFWyTyb5EPBYSFChAa0Ia2hLaOzGo6iz33VEJ7XBgZYFOWewdDiLm cb3X1jGyx0+g4B/xmPYUqvbAJM+bTcOFupZ8swTbT7y2cHqmw8DZoMY6tOGrAspP4UL5s6Ngb96 lzrIMg8zsffYP43J4Cnm23GUG7aTnVPRA2Bg83gFA47FlkQvTJ2vQpEi/Za6Ts2D5oflWqfeh+j /mlpgQF3BWGr4s1z+X5KAlpTtNGQ== X-Received: by 2002:a05:600c:3f0e:b0:485:3f72:323f with SMTP id 5b1f17b1804b1-488d67e6973mr188950025e9.11.1776092594546; Mon, 13 Apr 2026 08:03:14 -0700 (PDT) Received: from [172.31.5.233] ([147.161.235.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d688da2csm101156385e9.34.2026.04.13.08.03.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Apr 2026 08:03:13 -0700 (PDT) Message-ID: <7e6e33a8-9177-45d4-b830-992c1fb5e992@gmail.com> Date: Mon, 13 Apr 2026 17:03:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reduce build times of pg_trgm GIN indexes To: Bertrand Drouvot , Peter Eisentraut Cc: Heikki Linnakangas , Matthias van de Meent , pgsql-hackers References: <2e11134f-02c3-43da-8c39-fb520a1a251d@iki.fi> <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> Content-Language: en-US From: David Geier In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. Is the goal to completely get rid of StaticAssertStmt()? >> I think the position of the static assertion is correct, because it refers >> to the palloc0_array() that follows. Maybe the comment could be a bit >> clearer, like "using palloc0_array requires GIN_CAT_NORM_KEY==0"? > > 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. -- David Geier