pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with text search in Postgresql 10
2+ messages / 2 participants
[nested] [flat]
* Problem with text search in Postgresql 10
@ 2018-12-18 16:59 Howard News <howardnews@selestial.com>
0 siblings, 1 reply; 2+ messages in thread
From: Howard News @ 2018-12-18 16:59 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with text search in Postgresql 10
@ 2018-12-18 17:53 Tom Lane <tgl@sss.pgh.pa.us>
parent: Howard News <howardnews@selestial.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2018-12-18 17:53 UTC (permalink / raw)
To: Howard News <howardnews@selestial.com>; +Cc: pgsql-general@lists.postgresql.org
Howard News <howardnews@selestial.com> writes:
> If I try:
> select to_tsquery('english', 'hello');
> I get the error
> ERROR: invalid input syntax for type oid: "english"
Huh, should work. What does "\df *.to_tsquery" show?
> 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?
Could be something like that, but let's not theorize in advance of
the data.
If you could find out what PG version the older database was, that'd help.
Also, was text search working for your colleague in the old installation?
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-12-18 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 16:59 Problem with text search in Postgresql 10 Howard News <howardnews@selestial.com>
2018-12-18 17:53 ` Tom Lane <tgl@sss.pgh.pa.us>
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