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 1gp9dN-0002s8-LL for pgsql-general@arkaria.postgresql.org; Thu, 31 Jan 2019 10:31:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gp9dL-0007et-5U for pgsql-general@arkaria.postgresql.org; Thu, 31 Jan 2019 10:31:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gp9dK-0007Or-M3 for pgsql-general@lists.postgresql.org; Thu, 31 Jan 2019 10:31:46 +0000 Received: from miami.speedyservers.com ([195.8.196.32]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gp9dI-0003AN-8I for pgsql-general@postgresql.org; Thu, 31 Jan 2019 10:31:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selestial.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d55RqOD6s3LQBMh8UyWIRFdsi5jRPueE8n1Si3hAkk8=; b=fmvBj7YM0A9bCxNTqXEIg7IzXQ 20akae9iT+NcCMVmYk5GuLcgVywgRNTqmdN1r+86y1VjcrguOx+nBQC4a6uIWJQHWixe09Dnqz5+E omKFYI/XTX3LmqAbrw7Jh5rJiK4oSu7MwpZvoaafWafCOo+/Zh92vy8orOpwvYtd89MbCRIVXhfup DsB4kDI2STpQK0dAGFnUHHhG9X18VO+30wAfrOhv3wUG8X7IyZy+D7D6LRWTMsLwIS9oRfBbQPeMt jb7knaXNEO/wZSPsXLQa5E8apawMTArukLYqj0Nwap6+9vGKS0y5GSKMzmXxD8jez1vaK/m2FXjrO e6BFqUgQ==; Received: from static-87-75-114-0.vodafonexdsl.co.uk ([87.75.114.0]:64900 helo=[192.168.0.10]) by miami.speedyservers.com with esmtpa (Exim 4.91) (envelope-from ) id 1gp9dF-00DxGW-Iu; Thu, 31 Jan 2019 10:31:41 +0000 Subject: Re: Old tsearch functions To: Tom Lane Cc: Adrian Klaver , pgsql-general References: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com> <010c5d24-f704-3e44-ba5a-1855ecb8e0b3@aklaver.com> <9bee7649-5b5c-d4fb-85fb-06cd28e2b3a6@selestial.com> <25915.1548871728@sss.pgh.pa.us> From: Howard News Message-ID: <697c10e7-867a-a56d-4ae0-4e084717d044@selestial.com> Date: Thu, 31 Jan 2019 10:32:36 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <25915.1548871728@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - miami.speedyservers.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - selestial.com X-Get-Message-Sender-Via: miami.speedyservers.com: authenticated_id: howardnews@selestial.com X-Authenticated-Sender: miami.speedyservers.com: howardnews@selestial.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 30/01/2019 18:08, Tom Lane wrote: > 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 Thanks Tom, unfortunately running create extension tsearch2 from unpackaged; caused the following error: ERROR: operator family "gist_tsvector_ops" does not exist for access method "gist" So I think I will have to create a script to delete the functions etc individually unless someone has another idea. For the tables that contain tsvector columns, is it OK to just run the following, or will i need to rebuild the associated index? alter column ALTER TABLE public.mytable     ALTER COLUMN fts TYPE tsvector ; The current type is public.tsvector; Thanks.