pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wells Oliver <wells.oliver@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: to_tsvector() chopping off trailing 's' characters
Date: Fri, 01 Nov 2019 14:54:17 -0400
Message-ID: <31422.1572634457@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOC+FBWByhjrZTR7st1nfzqQ7g+yvjtB29oScpFAuMy398eJaQ@mail.gmail.com>
References: <CAOC+FBWAsQy7Gb57xqx8NVo3A5xq_zdrF6FuXXZ_AgmiSfMBeQ@mail.gmail.com>
	<CAOC+FBWByhjrZTR7st1nfzqQ7g+yvjtB29oScpFAuMy398eJaQ@mail.gmail.com>

Wells Oliver <wells.oliver@gmail.com> writes:
> Sorry for the follow up, meant to add I tried this:
> select 'Thames', to_tsvector('simple', 'fat cats ate rats');
> And it throws: ERROR:  invalid input syntax for type oid: "simple"

That works for me.  I suspect you've got some nonstandard versions
of to_tsvector() hanging about.  There should only be

regression=# \df to_tsvector
                            List of functions
   Schema   |    Name     | Result data type | Argument data types | Type 
------------+-------------+------------------+---------------------+------
 pg_catalog | to_tsvector | tsvector         | json                | func
 pg_catalog | to_tsvector | tsvector         | jsonb               | func
 pg_catalog | to_tsvector | tsvector         | regconfig, json     | func
 pg_catalog | to_tsvector | tsvector         | regconfig, jsonb    | func
 pg_catalog | to_tsvector | tsvector         | regconfig, text     | func
 pg_catalog | to_tsvector | tsvector         | text                | func
(6 rows)

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <31422.1572634457@sss.pgh.pa.us>
Permalink:  ../31422.1572634457@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31422.1572634457@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, wells.oliver@gmail.com
  Subject: Re: to_tsvector() chopping off trailing 's' characters
  In-Reply-To: <31422.1572634457@sss.pgh.pa.us>

* 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