pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Howard News <howardnews@selestial.com>
To: pgsql-general@lists.postgresql.org
Subject: Problem with text search in Postgresql 10
Date: Tue, 18 Dec 2018 16:59:29 +0000
Message-ID: <094c0bc5-12af-90c7-8dab-d181efec3149@selestial.com> (raw)

Hi everyone,

a colleague has restored a backup from an older version of Postgres 
(unknown) to version 10. Everything appears to be working fine with the 
exception of the text search.

If I try:

select to_tsquery('english', 'hello');

I get the error

ERROR:  invalid input syntax for type oid: "english"
LINE 1: select to_tsquery('english','Hello');

I can see from \dF that I have 'pg_catalog.english' installed. It works 
if I do not specify the dictionary using:

select to_tsquery('hello');

Any ideas how to fix this? I have read in older support forums that the 
problem may be related to older contrib methods for ts_query. If this is 
so - how do I remove the contrib decalrations?

Thanks

Howard





view thread (2+ messages)  latest in thread

Message-ID: <094c0bc5-12af-90c7-8dab-d181efec3149@selestial.com>
Permalink:  ../094c0bc5-12af-90c7-8dab-d181efec3149@selestial.com/
Also on:    postgresql.org/message-id/094c0bc5-12af-90c7-8dab-d181efec3149@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: Problem with text search in Postgresql 10
  In-Reply-To: <094c0bc5-12af-90c7-8dab-d181efec3149@selestial.com>
  References: <094c0bc5-12af-90c7-8dab-d181efec3149@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