Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quwic-002FWo-1H for pgsql-sql@arkaria.postgresql.org; Mon, 23 Oct 2023 15:19:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1quwiZ-00AmaA-Ju for pgsql-sql@arkaria.postgresql.org; Mon, 23 Oct 2023 15:19:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quwiY-00AmYD-UA for pgsql-sql@lists.postgresql.org; Mon, 23 Oct 2023 15:19:48 +0000 Received: from mx0b-00007101.pphosted.com ([148.163.139.28]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quwiT-002H7E-LN for pgsql-sql@lists.postgresql.org; Mon, 23 Oct 2023 15:19:46 +0000 Received: from pps.filterd (m0166259.ppops.net [127.0.0.1]) by mx0b-00007101.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39NEEALr022508 for ; Mon, 23 Oct 2023 15:19:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illinois.edu; h=from : to : subject : date : message-id : content-type : mime-version; s=campusrelays; bh=fIyWJnWADEOAwg8RtHQPo5oPUGakFoVnOHmzJMCoS20=; b=lvBZPZ0ggmOnKyUdJefgd0W4GuWHjMyD22N6bvU2jSLVh7f5UEyPAmK9vqgeiiDELOyD UJV6KKEj3Up6djFWfhH8STcK8Qi4OgluYL9El8TcasCmhQgQzKJnhUCEMkDAtj8hTK2b 0yIdEJF4nr0OemD94dGcMArtjXkYy9fSQrA4aCK3bUdbXnCWjQImmxdIwVSYZt+q4/Dn WE3e9XEREjo+1nyWRFegLMntzi6lDPT/Xl8XNmP0f1YJyq+xGWHzhylUPuL5knLp/Pvc ytkqmP+fINuL1OW6Rx3bgIDNT27bqCMDMPD2Odrv7IAeCRG3ZcX6ACvVigD9iPH6Bxet eQ== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by mx0b-00007101.pphosted.com (PPS) with ESMTPS id 3tv5ftdteu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 23 Oct 2023 15:19:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=od+qTdsN8jhVST01B76ComcXKaz1mHLcxMjajJHZfBIciLxeoeyRj9qKOvUWzIbMFdWXoZg+dmNu9L9Ie8+GqkNvh2YabZCJGhrwI5DYo5Cr/TYUSplWejmKQFyIHr29EYSu08ffzxJbeByPlLXnkLnIwiiTf8rkRok1t6wOFWj/QkFeT4/iKicNu+sGm0F/Yd8IbvrbsRX1BncPrS68bjSchnj1RWRQj5bpcIacZyKKtqvOJbhHgLvIi75lu2MlJnkDue2vEy4zOLWE4wXuAox5uFHIOxzI+z+uj4/VQDq8wvGoGpfV8DIWRKkYb6ykQ3eheDmxQ7Fgv/X/SMEujA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fIyWJnWADEOAwg8RtHQPo5oPUGakFoVnOHmzJMCoS20=; b=iHbGuY+I6iruNZEqOb6Blxi8ZLE6dgRsjERrMWZxJT6vdqgMVQOixW8XlovsxXur2P6kz3dmZKKFV0tVHPbMeJ5Pt65bExrOhKXb84e9gITRdT+ausRaxng2afcz+D8JwWWtaR+qpHe19cDuA+X4lfPETM28yiMEjB8OZlnP8gz64qNBst8UMQBWdLSRzKKz5LTZO/GbkR33OTF1w7srYu9RdyxjmqdevZ7Iap9RJEZS53sAwo+yDgTdDRNJAWA126nbFwxpqA5zg+gYEsUvHt0LOAisi6Tq9xsgk+sO8scueQsjY6myqCySD41bfJpUrBny6ZH6HsJKaGoLLIVKdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=illinois.edu; dmarc=pass action=none header.from=illinois.edu; dkim=pass header.d=illinois.edu; arc=none Received: from SJ0PR11MB5629.namprd11.prod.outlook.com (2603:10b6:a03:3ab::13) by SA0PR11MB4718.namprd11.prod.outlook.com (2603:10b6:806:98::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.29; Mon, 23 Oct 2023 15:19:35 +0000 Received: from SJ0PR11MB5629.namprd11.prod.outlook.com ([fe80::37b8:4f66:3da1:6255]) by SJ0PR11MB5629.namprd11.prod.outlook.com ([fe80::37b8:4f66:3da1:6255%6]) with mapi id 15.20.6907.030; Mon, 23 Oct 2023 15:19:35 +0000 From: "Campbell, Lance" To: "pgsql-sql@lists.postgresql.org" Subject: SQL issue after migrating from version 13 to 15 Thread-Topic: SQL issue after migrating from version 13 to 15 Thread-Index: AdoFxC032wrPz2jlSaGS3OgEbHTFRw== Date: Mon, 23 Oct 2023 15:19:35 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR11MB5629:EE_|SA0PR11MB4718:EE_ x-ms-office365-filtering-correlation-id: 96603ef0-dca0-400d-a509-08dbd3db7729 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VV0PTV8douMMz6l5slDgDTMAq9n7NHrWVbsSvTX756Ys5MK4HRbMEiUwMcx4vURDdR9jVQ6I+KowMTpYlfe1vlU6EosrGS1y0dC0Gb4b1DjyLvKEGR3dYsO8/+pRoUnhBNO8WSq4l9pJbDb4xgljOl8CrHmUX770udaL9NpM8CBijUwxE9TNfjdoxPvm79Kmzm5m+2IS+jq12T4QfwlehnaPsM/jcDOCrmhLDIIEHWkUX1Iacvzgo9OSWI/53r8dzXNkIggTCjiLqROujcMaPm8iBJgE73qW8FKWAP+FTXJKr3kEYoyF8xsUu/Qm1HBPIyQ9pwAohNXQTDl0PUg20oDGIZXLuYVpkubDGAfN4Y8scYfy5ZMYvIC34bziS8cYqlekNoFHR7Gw9lYXPH+v6RG7od0C6Bpj0uVtwPNxUPWhAdJiYrfdnt5Dbl3onGValNyN2T7M6fiBinUk0QyNyuVgyjU+NrwGhhmFMBFhmUW22e2Lz2jOGMD5K1qw43jHbZudi0poyPaQetXUHkpfLt/KeObCl5AMDrhM2JUJHg1ApesvcEh/fBPOdp58m+IQMcNiwKlpRoK1mjoq7C4wE/qEFUVRYxzNGoJ1a00NXO4cT4dVqnSMX04xrnSQBfAa x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5629.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(346002)(39860400002)(376002)(366004)(230922051799003)(64100799003)(1800799009)(186009)(451199024)(6506007)(7696005)(9686003)(52536014)(66446008)(316002)(786003)(64756008)(6916009)(66946007)(66476007)(76116006)(478600001)(66556008)(5660300002)(71200400001)(8936002)(8676002)(55016003)(41300700001)(38070700009)(4744005)(2906002)(75432002)(38100700002)(26005)(122000001)(86362001)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FuUkbdlo97VVOeSq6t65WjKTONcpZdkk+VDbgsY6VxiVY49WQaC+ldvIY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V8RFZuD/5vfjIteUgXmkT47msWMIzyvUmvDCT4/7W?= =?us-ascii?Q?7I6ZCdQPosZCKt73lZVSQNC//GHX6FZ2P69/aMLLUC2YCU7Fks+B2beQUAPa?= =?us-ascii?Q?rR3KuT8qp9hP6IpUVhRQsAUyjoHvri7mK9/nhWzFLgIL39VzTQWdURlzy9jy?= =?us-ascii?Q?avbeb3kBm9NxVmBcnPFWLA0oAPH1s1n9foh1mSNlIk0HG2rW1Ynxm+6JpKYK?= =?us-ascii?Q?yrY5NC12iwQ0VC+5IFYOIrYvrXajVHMi75pynzbxubbnU8FYPx9K8q0ohRHG?= =?us-ascii?Q?DZSzxgSdrThkiLYbpggNiTD2Qk4IZmmnoPV5U/h23JO/xSa6wmsW3NEgrtaj?= =?us-ascii?Q?2teA8o756VDqXnKYp9qxpWAqtd06QvheXWq4suU8cLM2Y7re9nkP8Vsktl2K?= =?us-ascii?Q?ABOmjxGV1SlLRaRilxP+oZo2VcREiP0O8o3maIIsFpf8FAgLRB2nrJORrZBE?= =?us-ascii?Q?tEH3IpdLAmhPn/Fabo8+0B9xssfsNbpdK2/KW/n9JRP3N5qNvqXLWlZVnTX3?= =?us-ascii?Q?Z+6Ei5IpDZFTWuoQ5MBvZJQJ7Wlobhe610+YQPOY2erytZRYpicmeFwaivy4?= =?us-ascii?Q?eYX34STAhD4Q1YDNZHjxcPabA1pQeU6j3UNWW1qtDybLQqnAMQ6DhDvENrvy?= =?us-ascii?Q?yd20qx/6AtkvAtP3wJE=3D?= Content-Type: multipart/alternative; boundary="_000_SJ0PR11MB562987A3390C885A8916E95ADED8ASJ0PR11MB5629namp_" MIME-Version: 1.0 X-OriginatorOrg: illinois.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96603ef0-dca0-400d-a509-08dbd3db7729 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2023 15:19:35.3128 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 44467e6f-462c-4ea2-823f-7800de5434e3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UiCmycrvExmJskSlxFpdlClxIux+c3VtYOADKS18s0G5IGZ4+HAgzfHFkzkSsPrwtUt1wBMVwboRNrlijZAfBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4718 X-Proofpoint-GUID: u6JVFhVfI4kj4-1NAcAp0yj64trb37Ou X-Proofpoint-ORIG-GUID: u6JVFhVfI4kj4-1NAcAp0yj64trb37Ou X-Spam-Details: rule=cautious_plus_nq_notspam policy=cautious_plus_nq score=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1011 suspectscore=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=782 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310230133 X-Spam-Score: 0 X-Spam-OrigSender: lance@illinois.edu X-Spam-Bar: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_SJ0PR11MB562987A3390C885A8916E95ADED8ASJ0PR11MB5629namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We migrated our PostgreSQL database from version 13 to 15. Absolutely no co= ding 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 s= ingle value like "real": AND to_tsvector('simple', CAST (table_column as text)) @@ to_tsquery('simpl= e', '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('simpl= e', 'real,impact') No exception is being thrown. Thanks for your help with this. Lance Campbell University of Illinois --_000_SJ0PR11MB562987A3390C885A8916E95ADED8ASJ0PR11MB5629namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 val= ues “real,impact”. The only change was migrating from PostgreSQ= L 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

--_000_SJ0PR11MB562987A3390C885A8916E95ADED8ASJ0PR11MB5629namp_--