SQL issue after migrating from version 13 to 15
От
Campbell, Lance
Тема
SQL issue after migrating from version 13 to 15
Дата
Msg-id
SJ0PR11MB562987A3390C885A8916E95ADED8A@SJ0PR11MB5629.namprd11.prod.outlook.com
Список
Дерево обсуждения
SQL issue after migrating from version 13 to 15 "Campbell, Lance" <lance@illinois.edu>
Re: SQL issue after migrating from version 13 to 15 Tom Lane <tgl@sss.pgh.pa.us>
RE: SQL issue after migrating from version 13 to 15 "Campbell, Lance" <lance@illinois.edu>
We migrated our PostgreSQL database from version 13 to 15. Absolutely no coding changes were made to our software.
table_column is a column in a table of type tsvector
The below segment of the where clause works fine if the value passed is a single value like “real”:
AND to_tsvector('simple', CAST (table_column as text)) @@ to_tsquery('simple', 'real')
However, this no longer works when there are two values “real,impact”. The only change was migrating from PostgreSQL 13 to 15:
AND to_tsvector('simple', CAST (table_column as text)) @@ to_tsquery('simple', 'real,impact')
No exception is being thrown.
Thanks for your help with this.
Lance Campbell
University of Illinois
В списке pgsql-sql по дате отправления