| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com> |
| Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
| Subject: | Re: to_tsvector() chopping off trailing 's' characters |
| Date: | 2019-11-01 18:54:17 |
| Message-ID: | 31422.1572634457@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Wells Oliver <wells(dot)oliver(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wells Oliver | 2019-11-01 19:00:21 | Re: to_tsvector() chopping off trailing 's' characters |
| Previous Message | Wells Oliver | 2019-11-01 18:35:27 | Re: to_tsvector() chopping off trailing 's' characters |