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.94.2) (envelope-from ) id 1uok8M-009Ocv-Op for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 14:49:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uok8L-008uGF-Oi for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 14:49:50 +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.94.2) (envelope-from ) id 1uok8L-008uG7-A6 for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 14:49:50 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uok8I-000vOT-2v for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 14:49:49 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-61bd4ff762eso3028495eaf.3 for ; Wed, 20 Aug 2025 07:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20230601.gappssmtp.com; s=20230601; t=1755701384; x=1756306184; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XepoIWT30QYlPBFz1HE8+Uu9Q8XAppMupUfO4WvDltc=; b=dzZONOwZ/RRrXlmfT/rOtjWkxWYwZDZIF+TnR6sUHBGO8zRTLeWI3tz3G12U7LJGUD 3U7SPNDvTse/gBSlY0p7cu87AQ0OCtxHOGyaywO4BamYazCB/iPiVleVMmCTWWs3MXjZ jNTHeZ9i4fq6bc8tsfAsix/qtY9jgO3897Q8B+4bPLsNC/rQqwfrzwpZSoxk5mqCE6AL NuGyJBWnFkmHOwvirwjhk6qx4Xq3rln/24Wsr+Fw22Lpe3LxPRHZgeJSjHiMKrpLwQkj RR2i5dVPMRlRcmCKKlbnjl6K2/jb3Br3McSUzfsUtJYAoYCVbUvKDNFpBdHOwOvq0dw8 y/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755701384; x=1756306184; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XepoIWT30QYlPBFz1HE8+Uu9Q8XAppMupUfO4WvDltc=; b=mWBP/eIzpW0lNSHF8ulJhYK9Kh5LNpRrcu/w3mE02MZaQFNNMBQOIeRQ/VmsOok3BR qwItmpj+hzVlJvTCsv25TXQx7z8+TNLlBT56n3i3aUhIwwtKb3DaC4A2b3778fUToLMs TCWQjCLz1y6D2+46RWQnPHs3rc4Fjmrx2oFJBaOPDKe+/NiENT+EP4IaLLl84pX8DuCr vLZjlNGfMoHxw12RO8t1GqJPStrhFrmRuWYh1eGqwG67uXEL0tr38gsXvo+hfY2LhRpv vU9pWJq8SpQ8F7E5c4+porZWNmctP9XTmtOK1xrYcw+QJ/ZuG9JuwK7/pFXKHfvr6xJs fSBg== X-Forwarded-Encrypted: i=1; AJvYcCUmSrxvDIwZzYR8+CfpkPZTk2CU1/n836aC4a4yORvFCBJDii7MptmgMKXJItgdkdewPjq8czqhH+hnT4se@lists.postgresql.org X-Gm-Message-State: AOJu0Ywu0Tlk427IkskLS402LKdJSOrXKffH3UWFjhkUouFrcJgBqJ6K gsGjdEjMKFFTUuYag3W97rF3MImqYQ9fLZqJc30f24se4wfi3JJQAxiGW8+eWDuopZD/PtB9/uZ /45mCAVvFe9ftSVJ05BROi/agloRrYS4z1c/1Olyk+g== X-Gm-Gg: ASbGnct04wfgnc8ezHG78mBrZm/+DX3OwnLLYf+paojccWufrD/QfPb8ZUoUm7vmEyo z5P+KlkIx+jA1iHUL4eQxF/ZYpGViqsoPW2ALERTs0tGo5rD5UZC0iNAmepAjgj7VsvsTHRwoTV Jq6rm/wT3bQZzDsGidWkA280hn17RsaNXlxPB9tb8r1nxtbAZePFMJBSNyI1yHM/y9QKM+dCuMa TsdXEdc X-Google-Smtp-Source: AGHT+IFQUDFl9SMNGBTqKEN7jZe+RX1OLqthzodaroo3IfSfmMtu7T5Vkyk3IamOlj0rVntTGB8fSQFG5bcOprjnqF4= X-Received: by 2002:a05:6808:6f8b:b0:435:8501:db01 with SMTP id 5614622812f47-43772019574mr1704169b6e.16.1755701383848; Wed, 20 Aug 2025 07:49:43 -0700 (PDT) MIME-Version: 1.0 References: <4d301501-9985-4e68-b1c1-2360c251048c@cloud.gatewaynet.com> <54d352ad-3f64-4492-aaaf-1ebaeac5471c@aklaver.com> In-Reply-To: <54d352ad-3f64-4492-aaaf-1ebaeac5471c@aklaver.com> From: Paul A Jungwirth Date: Wed, 20 Aug 2025 09:49:31 -0500 X-Gm-Features: Ac12FXzlRflPMFv0lUIDt5SXx4azMUiCWepcysOpk74aGjCSlA6VoCVgtHpH6Zs Message-ID: Subject: Re: pg_upgrade from 18beta1 -> 18beta3 - problem with btree_gist contrib module / extension To: Adrian Klaver Cc: Achilleas Mantzios , "pgsql-general@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 20, 2025 at 9:39=E2=80=AFAM Adrian Klaver wrote: > > On 8/20/25 05:50, Achilleas Mantzios wrote: > > pg_restore: from TOC entry 4295; 1255 596569951 FUNCTION > > gist_stratnum_btree(integer) postgres > > pg_restore: error: could not execute query: ERROR: could not find > > function "gist_stratnum_btree" in file "/usr/local/pgsql/lib/btree_gist= .so" > > Command was: CREATE FUNCTION "public"."gist_stratnum_btree"(integer) > > RETURNS smallint > > LANGUAGE "c" IMMUTABLE STRICT PARALLEL SAFE > > AS '$libdir/btree_gist', 'gist_stratnum_btree'; > > I can not find gist_stratnum_btree in: > > https://www.postgresql.org/docs/18/btree-gist.html > > or in the source. > > How did it end up in the database? gist_stratnum_btree was in beta1 but was renamed to gist_translate_cmptype_btree by 32edf732e8dc9eb3e7a923aeb67d49246744a20a. > > The solution was to somehow restart 18beta1, drop btree_gist and all it= s > > dependent constraints / indexes / objects , pg_upgrade and finally re- > > create extension and dependent objects. > > Something more then DROP EXTENSION/CREATE EXTENSION btree_gist? That seems like the easiest fix to me. But if you've built indexes based on those opclasses then more work is required, as here. I don't know what pg_upgrade tries to support for moving from one beta release to another. Is this something we should try to fix? Yours, --=20 Paul ~{:-) pj@illuminatedcomputing.com