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 1iQc42-0002Tb-Qi for pgsql-admin@arkaria.postgresql.org; Fri, 01 Nov 2019 18:54:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iQc40-0004hY-7P for pgsql-admin@arkaria.postgresql.org; Fri, 01 Nov 2019 18:54:24 +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 1iQc3z-0004hQ-NI for pgsql-admin@lists.postgresql.org; Fri, 01 Nov 2019 18:54:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iQc3x-0001J9-0m for pgsql-admin@postgresql.org; Fri, 01 Nov 2019 18:54:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xA1IsH2N031423; Fri, 1 Nov 2019 14:54:17 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin Subject: Re: to_tsvector() chopping off trailing 's' characters In-reply-to: References: Comments: In-reply-to Wells Oliver message dated "Fri, 01 Nov 2019 11:35:27 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31421.1572634457.1@sss.pgh.pa.us> Date: Fri, 01 Nov 2019 14:54:17 -0400 Message-ID: <31422.1572634457@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Wells Oliver 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