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 1gotL7-0004uU-Tv for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 17:07:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gotK7-0007Q3-LS for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 17:06:51 +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 1gotK6-0007Dd-UM for pgsql-general@lists.postgresql.org; Wed, 30 Jan 2019 17:06:51 +0000 Received: from miami.speedyservers.com ([195.8.196.32]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gotK3-0005cK-65 for pgsql-general@postgresql.org; Wed, 30 Jan 2019 17:06:49 +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: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lqZ1qAXrsWnAibE9JrTbCmp4blp/niDHJP//6HI2o2o=; b=JzBqv0hFV3c1MprsmuNRUOFLas uCVp3VoSqM6Goudab4Zl02ROn7ktMdSvFJzAXihYguaN6HdU/QVtujx9mg5iTfE6T5K7XxDKFPGNm 6lTZZMsa578i8QtiLB2bebTRqrEqA+IZWBCkG4WnbZ4vJuIeJ4GTVhGtPs0z823yt5xh4QsJsM7Is Ew7rc+aqRWnnuVcPXFba2LIhIaNUdTI9qDbU3wtCNrgL6iiR6siptngEcao9Pa6/T1Jof+vc5LBuw ZBE1wHVQ0OXw47Zbzb/ibO+mfiqeVVCnuE7OPprNIXT2dhTDPbx3PY/u6ZblRlYrGE3R35JobJ9Ba 8DMwp+Ww==; Received: from static-87-75-114-0.vodafonexdsl.co.uk ([87.75.114.0]:58916 helo=[192.168.0.10]) by miami.speedyservers.com with esmtpa (Exim 4.91) (envelope-from ) id 1gotJz-007sby-Gw for pgsql-general@postgresql.org; Wed, 30 Jan 2019 17:06:43 +0000 To: pgsql-general From: Howard News Subject: Old tsearch functions Message-ID: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com> Date: Wed, 30 Jan 2019 17:07:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 Hi, upgrading from 9.5 to 11.1, I have a few tsearch problems that appear to relate to a much older migration (8.3) Originally, for those that remember that far back, tsearch was a contrib module. However it appears that I still have some of the old tsearch functions in my database, and these were copied into the pg_dump that I restored into v11 and have caused some confusion and problems. For example, select to_tsquery('english', 'hello') would not work. The reason is the additional functions, domains etc that were added to the public schema, probably from the contrib module, which was removed in v10, Now I can delete all these extra functions and domains and change the types of all my tsvector columns from "public.tsvector" to the inbuilt type "tsvector", but is there an easier way or a script that exists to do this automatically? (I have a lot of databases with this issue) Thanks Howard.