pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Howard News <howardnews@selestial.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Old tsearch functions
Date: Wed, 30 Jan 2019 17:07:37 +0000
Message-ID: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com> (raw)

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.





view thread (7+ messages)  latest in thread

Message-ID: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com>
Permalink:  ../077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com/
Also on:    postgresql.org/message-id/077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: howardnews@selestial.com
  Subject: Re: Old tsearch functions
  In-Reply-To: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com>
  References: <077abc5d-0ffe-5a54-38b3-a36cbcaeec48@selestial.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox