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 1gouJB-0007sG-Po for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 18:09:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gouIB-0007eZ-L3 for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 18:08:55 +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 1gouIB-0007eS-5b for pgsql-general@lists.postgresql.org; Wed, 30 Jan 2019 18:08:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gouI7-0006yI-UV for pgsql-general@postgresql.org; Wed, 30 Jan 2019 18:08:53 +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 x0UI8mHV025916; Wed, 30 Jan 2019 13:08:48 -0500 From: Tom Lane To: Howard News cc: Adrian Klaver , pgsql-general Subject: Re: Old tsearch functions In-reply-to: <9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com> References: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com> <010c5d24-f704-3e44-ba5a-1855ecb8e0b3@aklaver.com> <9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com> Comments: In-reply-to Howard News message dated "Wed, 30 Jan 2019 17:57:39 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25914.1548871728.1@sss.pgh.pa.us> Date: Wed, 30 Jan 2019 13:08:48 -0500 Message-ID: <25915.1548871728@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Howard News writes: > On 30/01/2019 17:20, Adrian Klaver wrote: >> Is to late to experiment with dropping the extension on a 9.5 database >> and then dumping? > Not a problem - The problem only shows in development so far. I have all > the originals in 9.5 and backups to try this on. Note that if you had those functions laying around ever since 8.3, they're probably just "loose" and not wrapped into an extension at all. You could fix that in a 9.5 database by running create extension tsearch2 from unpackaged; which should be enough to collect the relevant objects into an extension. At that point you could try doing "drop extension tsearch2". Likely it'll fail due to dependencies on the extension objects, but at least the error message will give you an idea of what you need to fix before you can drop it. In any case, this certainly beats trying to manually identify and drop the obsolete types and functions. You will need to do this in 9.5, or at the latest 9.6, because we dropped support for that extension in v10. regards, tom lane