Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iN8Ph-00039B-Dx for pgsql-admin@arkaria.postgresql.org; Wed, 23 Oct 2019 04:38:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iN8Pe-0006Kf-Pm for pgsql-admin@arkaria.postgresql.org; Wed, 23 Oct 2019 04:38:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iN8Pe-0006KY-DL for pgsql-admin@lists.postgresql.org; Wed, 23 Oct 2019 04:38:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iN8PU-0005qZ-Jk for pgsql-admin@lists.postgresql.org; Wed, 23 Oct 2019 04:38:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9N4c8wa028860; Wed, 23 Oct 2019 00:38:08 -0400 From: Tom Lane To: Karl Denninger cc: pgsql-admin@lists.postgresql.org Subject: Re: Upgrade failure attempting to go to 12.0 In-reply-to: References: Comments: In-reply-to Karl Denninger message dated "Tue, 22 Oct 2019 21:48:58 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <28858.1571805488.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 23 Oct 2019 00:38:08 -0400 Message-ID: <28859.1571805488@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Karl Denninger writes: > I think I've seen this before, but I can't figure out where the issue > is.  The original database dates to way, way back when contrib/tsearch2 > was a loaded module instead of the functionality being part of the base > system, and I suspect vestigal pieces are involved. Yeah, that's what it looks like. This: > Command was: CREATE OPERATOR CLASS "public"."gist_tp_tsquery_ops" is part of the old tsearch2 stuff, and you'll need to remove it from the v10 installation before you can upgrade. What I can't tell from this evidence is whether you'd ever converted tsearch2 into an actual extension --- if you had, then "drop extension" would be enough to get rid of it. Otherwise, you need to consult a copy of the old "uninstall_tsearch2.sql" script to find out what you ought to get rid of. If you have user tables or indexes that depend on the old tsearch2 objects, things get more complex :-( --- you'd want to update those to depend on the newer core datatype and index opclasses before you clean out the old ones. regards, tom lane