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 1vjEFr-00BTw1-0Y for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Jan 2026 10:19:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vjEFq-00H5pp-0z for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Jan 2026 10:19:02 +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 1vjEFq-00H5pg-00 for pgsql-hackers@lists.postgresql.org; Fri, 23 Jan 2026 10:19:02 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vjEFn-001u0p-2r for pgsql-hackers@postgresql.org; Fri, 23 Jan 2026 10:19:01 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-47f5c2283b6so15111725e9.1 for ; Fri, 23 Jan 2026 02:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769163539; x=1769768339; 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=SEZsjVgVVfal/LgMFDzSiCBfqsZpiH3/ibH5RUPn3Jo=; b=P/zkX3YOVYd3Dmb0cen1XD9P8aJrXIdlYnBIO7DfMzzUlGlkG+isCKvsjHyrUXJiX9 b/0HLqhBVVSkVfR5Hqrbmr0nyKdRxQLzUuZMnoznOGwXYO833g3FSiPftasC/UOi5bmv WH9Dcl444NhQO8DvoMrX4he9jzvVqUs3yGyD6Y0et9r2MDxllo1C5WnI0la9VhDaiHch DxGoaz4k2wekJj+0YPQlI1kIrOZ/qLx895xXKSC/Q0hqUYoyjls32yOV++CmYasLtIWY OaA6hilxF3AbMpQ/RzhzOC1FaYd6+hxwH8k/f99hNav8/pMXMljf2tvqWQ4xDCXGckZJ rHuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769163539; x=1769768339; 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=SEZsjVgVVfal/LgMFDzSiCBfqsZpiH3/ibH5RUPn3Jo=; b=XzvD2nzmW0DFtFUUQtA8oGDsN9XR+7gb3qnasGr9tJp/reP6lUpa53iELAS1wRuV1B mNOKXQsvn8q4TpUNDbgjuR3z8z4ZQcXGy6z7Ydr+5PBnd82HcOKb/xo1soc3y8jw4wg/ p7irRf3lSsKe7ytOETOzMmU1+g3djs/00428AkDiwitBaDGafqMpzGp1eyR8dEX2K8WF QeV1ZJMGRZciDA3NQZX/flfjQyBHfFHK5SDW6M5G2ppt+Hz9xLITf7byI2VqLkPjiotn 6ER9YFc0qycAHIFusBjcafySjXfD8ncUmrcE95jzCPrvBSJzT7osLamTs4OZjaHJ0XMo l+FQ== X-Forwarded-Encrypted: i=1; AJvYcCVr+kGghl9vmnRWheH9gI1/vW8PHOxKJk9okPW4HHkBvIqOQ2VsqvOTQud2CFxcQNa95KzDK6tbeR2Wrr+X@postgresql.org X-Gm-Message-State: AOJu0YwiuCI5Xk+Y8yFG7i9+UralL6UQSLTc/D923IjAswKeoSgm14rX +vO2uUYelZuhGu8ZIEH4yjm26KZDKdGWunUJEgZq3gE1gwm1+SeT4W9a X-Gm-Gg: AZuq6aIIjGJ2jcoHjcxBuwGV0SjZGQS9olZ4IYgvh4tOQz0JqM+k6PanzwXKfbypgeu N5dDV2OgsZKG9vNsecTSwmd2vc8j9eq9WO4rbCxzCjDxVNXzrIqCck+AiDwwWhUrzxNO4AaD962 hyYbBWG+cxOwRp0ZT20Et16EJp1J6S2bc6QFrpAp3b7SPnBmXNRaVOahIQJDPsTGba3VDLIH+46 dDYL4aiDeBPY1y9ADvqbp6ZLjxUv33phF11sLQRAOX14naNlGL3O5Y0yr6lTPyYh0Kjr177jzzO NteLBkHNlg2dZy0Gg+5dER0epm9nZ4l2PMDQTA4fx+6vtPJT8Nr1UF8uTw11AroTpmP8WuETcQX hLfJP0Lr4fpPLsReDVjVnf+5hTqx/OBEgv8BN1PZ9EmYXnH7OHcfq6qHlrd+/2tDzu4IhrBJouT EmsjZzhqDm0T6lsZU= X-Received: by 2002:a05:600c:3e19:b0:47e:e87b:af8 with SMTP id 5b1f17b1804b1-4804c9b4ccamr38844355e9.21.1769163538980; Fri, 23 Jan 2026 02:18:58 -0800 (PST) Received: from [192.168.2.32] ([147.161.234.248]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1c24ac1sm5486981f8f.14.2026.01.23.02.18.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jan 2026 02:18:58 -0800 (PST) Message-ID: Date: Fri, 23 Jan 2026 11:18:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reduce build times of pg_trgm GIN indexes To: Matthias van de Meent Cc: Heikki Linnakangas , pgsql-hackers 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> 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 Matthias, On 21.01.2026 21:50, Matthias van de Meent wrote: > 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. Thanks for the clarifications and the link to the release notes. That's very helpful. Then I know how to move on and will update the patch accordingly. -- David Geier