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 1wCF6n-001nHO-13 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 11:05:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCF6l-006ROw-1f for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 11:05:36 +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 1wCF5S-006Oio-34 for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 11:04:15 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wCF5R-00000000mmc-3ceO for pgsql-hackers@postgresql.org; Mon, 13 Apr 2026 11:04:15 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-43cfce3a195so2659676f8f.2 for ; Mon, 13 Apr 2026 04:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776078252; x=1776683052; 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=FJEtG+Ihsr44bQQHcMTEDYJQ/A7jyKPyj5Xq9jVAlNc=; b=Rcz9ZBFvnxXolKKk70UHO4wIcsilDm5Ocvw1DFFc4DLsnC4bk2uGPNvHK6+i20wbx7 DwV9h5ecMtpl/OR8bU5DIvl6alDv2/1lpbL5d3QLtAGo1GNnGJC0jHjsNyORqOOhS7ZJ NlIzKxLLADofk9VAfAfo9iEsp5TQCVZZYNqX1M74bsGjKJ19DSMVPPiBsaFCqkw8bBZQ iCIi9M/Wisqr8tpvrG0L/Za4vjTHhvJFfLZT3D50dDtbVF5sLT6A6WZqKyqjCx/bWTSe FvN3AIu8/Ki3C7xv3a21YmhXQhTefYkSn/m04HKRGHXndO34DJKnItCjvxbFCFn3pL8R czXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776078252; x=1776683052; 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=FJEtG+Ihsr44bQQHcMTEDYJQ/A7jyKPyj5Xq9jVAlNc=; b=WUfDKUtv7cuk0xmR3a4uue5wn71gorUYpfqi6my8o0IL7Vb2odhzXfq4dvGrgB5TY3 rUawWJ84fyxzJ/yH5yJ0xqSlMTxO29cbFdD48HVDjS8cqs9zBdHDOTpSPP8sksMA7uoX rEg5gJerKfIVhgWnxgIL0XnWfNOxlXU3+mipo+qspsZn1IIzAnhn5YcZdH21krkoDhOU xbgZmPO9DU49g56UJLpAahmviWGZDAnDYaC2B7YrwAmuAMESl8aWbQA+2ER0+1OYbx80 wvDa0XCX1rOOhDJDXvxUEx3rfeJJOJqfRvNIyEqNOosW/feiSwHZVGbbiZ4D42HNy/Fk gE2g== X-Forwarded-Encrypted: i=1; AFNElJ9MxmKIIFHOefzVfA78EJNCW5Z+DyudKDtTDMRksCIsv5978BK1qW6eXjx5B62b8JN+R+wtKAUKuKx40X5k@postgresql.org X-Gm-Message-State: AOJu0YzwIHjePosIS8lcjFQZwletSLXQdVZPjTCeFLOC58Glt8nAv0hj NgHlFM7b0XpY1j1qg+xgHi2UrvMqZKprT3S35bHM5pxPBS2vwn2eaKo3 X-Gm-Gg: AeBDiesEv6ksTm5t9g8pgwfVXe/hke4wqwXn2pXjeCXeA+vMepI3YXTgYMtO//PS+tu gYDayZg/v4eizwQ/W5QGYnfJgExO2IAEPjYL+f9Gb+MtApnZp1bkxHNL77P0Ds7hbRGN+Suh/QI Qb3STrWdlDkfRJIrnC6FWAy4Z3vxj38WrPGsC3lBcM7OSLsiqIB9fSPcBra9uT4L11D10tZSYup m6UQJR+PKBQO3rT1PIPHYotJ1BvRp4LZkmLg/SqbdB6UXvf72D9PdL9Kh/zuVnSV+B7XScxJAKE ac/0yM40tklg33dZo4QP0HTYEV8X9VAwFT8aMlep/kAHdbIJU1DtFPb68UIdxVsr9sRs+dYR/gl wrt3clBrET7Ct/vL9563IytahEmjujq0gLcMva6SzLzFdKygMDypNPjEvkkEaDsB502uxBtniYz dr28Ltl00M9Ub1DsQcOzI8GxFQ6OWK4aVaihiH8OQ2afOWDQ+4OOgFVmx32faLovMXvv1aV9X4L Y9qRGCvWx6Sw9RYRYM0bC/EZ/JDJnP7asaSTNOEEbkFwVDb66K43Gr1pw== X-Received: by 2002:a5d:5f94:0:b0:43b:43d3:62ac with SMTP id ffacd0b85a97d-43d64253bd5mr18639681f8f.18.1776078251482; Mon, 13 Apr 2026 04:04:11 -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-43d7bd2f237sm4413519f8f.23.2026.04.13.04.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 04:04:10 -0700 (PDT) Date: Mon, 13 Apr 2026 11:04:09 +0000 From: Bertrand Drouvot To: Peter Eisentraut Cc: Heikki Linnakangas , David Geier , Matthias van de Meent , pgsql-hackers Subject: Re: Reduce build times of pg_trgm GIN indexes Message-ID: 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="own3bwUg9UcwGn6A" Content-Disposition: inline In-Reply-To: <2a2f9cb0-f00d-413c-8517-4a3ad220d104@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --own3bwUg9UcwGn6A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com --own3bwUg9UcwGn6A Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v2-0001-gin-change-remaining-StaticAssertStmt-to-StaticAs.patch"