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 1vifBT-00CfsO-1k for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jan 2026 20:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vifAT-009IWG-21 for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jan 2026 20:51:09 +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 1vifAT-009IW7-13 for pgsql-hackers@lists.postgresql.org; Wed, 21 Jan 2026 20:51:09 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vifAR-001ed0-0p for pgsql-hackers@postgresql.org; Wed, 21 Jan 2026 20:51:08 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-382fb275271so2761901fa.0 for ; Wed, 21 Jan 2026 12:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769028666; cv=none; d=google.com; s=arc-20240605; b=hGkgxHziNjXANAVCL3jS0KYS7RBZ0xkWdEzH1nTniGbdgpe8n5H/uDw1AKAmuTfs3J VB8pq4q/4kN46gUkm84g9dIp1Y+FgneImQgRIAdAaZsvK1BHnoy2iCiRvV9vJUySRYgM Sgk15svckSiRuqajHcvjb2ZY/lY+aJXSz1N/XGLDziyPD8dI50LxjiAuyH4n/uWFWeIT Hnx1zhJDdg0NZo8Shvjs1K4yTsrxPKPhWLgjmnnOwWTAlEejS8vORQcfDWxWQq0zWzj2 AULhoveYuwLTVCD+Hrt/pSuh+wr/IUCK8+modP2j6IwIvIOVal/PaW57wg4F08rTLkCQ oFWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=MA8OSRTbjcGLC5b2/k7OF3+fOPlkQPaBjXrapsCmRnI=; fh=AKP0ZDqPvZHTFccDW5wFQTZ1rDSUIh5Fqg4EHK6t7cY=; b=WjCL3Qwp72SiNx2I3yav+54YXMX1Q688xFiYcHlp6tH58ezJY+HUONicIjTd+zGG/k lXkJXBnkMP2kCr/pS5ZAipN355mwljq6OcnNGUKOGN9kaJEY4dRpetJLTIpgvn+APWGU vkRQASGWpsuHR9zZ9clPW/Xv0HMKV+sDtHqG9Mb0HRsvfoYeZJ8ztW6GB12xGiSJ2Nhu VNoUIVHfCyHWIbuynb94aw87aMyZPl25qZpafmKT8YGkd1LlYlhOEGupmsPh+kSZscLQ TS0pIvRO/Idf/OduKE6Ibj/Q3n9MtqJ6SxHNBRwfnJ8vG/eiFjI443H5uWjmn9kv5Ij0 LVJw==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769028666; x=1769633466; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MA8OSRTbjcGLC5b2/k7OF3+fOPlkQPaBjXrapsCmRnI=; b=C5tfohiWLh5Ueh2v/fIpNf3vn83fcU08JphGtYpxB0FfSYaRFDYmkxovRKs50scvgu j8VrkF1ltW6V3l4fF87QgAPvtDjoBB4e/QXOiKgGYlTSidPWJpZAvYoPnVd1+j88aEoK XsYUwjK3hOm9Poy0CFz5zcDFTY29GAm4Ur4/4A0/igwxDXYbSETue+lp/ZG/a+hhs+2f qmOLn377xe4fAck1uiiltb8OTLosx+9RL9aays9v8s3wlOI3AVyV1lxi+scHbCqK/Gzu UQlwHsXxdmTo9c0U+jNQPOv7ugazsXk6uDWnHChAFQYn522fesTtRYiidRNwYiDAkSgE GfnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769028666; x=1769633466; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MA8OSRTbjcGLC5b2/k7OF3+fOPlkQPaBjXrapsCmRnI=; b=Q8v1BGalkogauPMh5pGljDqujsehxFj3vxRez0bETKWd5xDgTeYRxTUevxXlxssrzH /gJwy3Hu5+sWYp9B6MHsE3xx3ALKB7vb2sGyHbh3Bok2xTSMSbNb9nRyLbCvcfMQejls 0e2AZORX3Fz5YNLwi37+BN0bLIFLWYvVQuk1jaoR5TPHBghpGxXjSp+DRvCmjsYkMw60 AixHb02xt/TmanesrXOGjD9PmmLftP6iD1SsbPoVCfvMD4dokk4pcRYowSXmeMhu/8GR halES7FqTlaVCsXFA1NHvzn8ivfLWPaoXzlpWrb+TPt4QLGddqwrqn0DNLsayJO5nSRj ryRg== X-Forwarded-Encrypted: i=1; AJvYcCXl6wIz599jXeKfkfbb+oBemeAiyfDfoxBWLUvCRqdRa0ioxeQNxtP3Hls9Z/JXZ92jUf6cX+vFbalWvwvG@postgresql.org X-Gm-Message-State: AOJu0Yx/sGQrxzRKuA1UG5w8jLvb7wKeo/ac8f+Lp3mshlGw+fjKo6x+ FoP3Em07aW854kcQ+Z5QQP6bWt0YCLtncj27RabLBrH3ZBAV9tlsHBEIuZg/58/No+GTAyTNMsw yW7SzS5RCVXMwedE3AR9XE4malLskx1M= X-Gm-Gg: AZuq6aKazFz+rE0xWtxZXdHzYxV7vM6PKXlBGytrqGgQ6MutqkXzNid6D1b45yyG50Q P9/3WAfu6h1w0UtOUL3Cl5fVDgUSL4Mak/WFxnfHrPk8rE9s7PZzvbxXtEa87ys59e5Gx4e2g5f qEI+cNRajWMns9POVsiu95mf5SoRQB5VpkVFYhapO7LUWgCgbWzVXgjmzctr9H8lIGcaAJa0vh3 jAga9mCPdE91bXiBz55kBcUpfzrbmlCdHWJOmHq+SFa80LIA3b+0iWo4qgqg05NkZ5TSlA8n28E kwgZQhuNtnv6jquC/uohhyLRpRHCMR1inSAndImExS8KACQihsh4A73Rm/+OuJIjvWSP X-Received: by 2002:a2e:be1b:0:b0:37f:d484:599c with SMTP id 38308e7fff4ca-3838692b278mr71276431fa.28.1769028666005; Wed, 21 Jan 2026 12:51:06 -0800 (PST) MIME-Version: 1.0 References: <5d366878-2007-4d31-861e-19294b7a583b@gmail.com> <9ac3931a-180e-4283-a7a8-05eb66099206@iki.fi> <2e11134f-02c3-43da-8c39-fb520a1a251d@iki.fi> <66620ec7-0f81-4813-9cf1-b901a56efcc3@gmail.com> In-Reply-To: <66620ec7-0f81-4813-9cf1-b901a56efcc3@gmail.com> From: Matthias van de Meent Date: Wed, 21 Jan 2026 21:50:54 +0100 X-Gm-Features: AZwV_Qh0V0jH_47JCygjqYtqGCCsb8Q8KFMHRNJajZoxgJBNknlOlmafEBwoV0M Message-ID: Subject: Re: Reduce build times of pg_trgm GIN indexes To: David Geier Cc: Heikki Linnakangas , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 21 Jan 2026 at 16:45, David Geier wrote: > > How do we usually go about such backwards-compatibility breaking > changes? When it concerns a bug, we mention the change in the release notes with a warning to reindex affected indexes to be sure no known corruption remains. See e.g. the final entry in the PG18 release notes' migration section here: https://www.postgresql.org/docs/18/release-18.html#RELEASE-18-MIGRATION. > Could we have pg_upgrade reindex all GIN indexes? Would that be > acceptable? No. We'd handle this like any other collation/opclass fixes; we ask users to reindex their indexes in their own time after they've upgraded their cluster. Note that in this case it concerns an issue with just one GIN opclass, not all GIN indexes; so even if we were to address this in pg_upgrade it wouldn't be a correct choice to reindex every GIN index, as only a subset of those would be affected by this issue. Generally speaking, pg_upgrade doesn't concern itself with the validity of the data structures that are described by the catalogs that it upgrades, it only concerns itself with that it correctly transcribes the catalogs from one version to another, and that the data files of the old cluster are transfered correctly without changes. Kind regards, Matthias van de Meent Databricks (https://www.databricks.com)