SQL issue after migrating from version 13 to 15 - Mailing list pgsql-sql

From Campbell, Lance
Subject SQL issue after migrating from version 13 to 15
Date
Msg-id SJ0PR11MB562987A3390C885A8916E95ADED8A@SJ0PR11MB5629.namprd11.prod.outlook.com
Whole thread Raw
Responses Re: SQL issue after migrating from version 13 to 15
List pgsql-sql

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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: stored procedures
Next
From: Tom Lane
Date:
Subject: Re: SQL issue after migrating from version 13 to 15