Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1XDj-0008Cm-5P for pgsql-sql@arkaria.postgresql.org; Thu, 08 Jul 2021 16:49:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1XDi-0000F0-1I for pgsql-sql@arkaria.postgresql.org; Thu, 08 Jul 2021 16:49:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1XDh-0000Eh-QP for pgsql-sql@lists.postgresql.org; Thu, 08 Jul 2021 16:49:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1XDf-0007sI-Io for pgsql-sql@lists.postgresql.org; Thu, 08 Jul 2021 16:49:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 168GnjRI1975905; Thu, 8 Jul 2021 12:49:45 -0400 From: Tom Lane To: "David G. Johnston" cc: "Saraswat, Dhruv" , "pgsql-sql@lists.postgresql.org" , "Perumalla, Vijaya S." , "AR, KarthikRaja" , "bhorhari, vikas" , "SV, Sushanth" , "Dahiya, Rohit" , "Thota, DurgaKumari" , "Venkatachalam, Sundarrajan" , "Appandarajan, Vinoth" , "Barchhiha, Vaibhav" , "Prajapati, Priya" , "Kumar, Ravi" , "Sarkar, Madhurima" Subject: Re: UPPER() Function Not Working as Expected in PostgreSQL 12.5 Version In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Thu, 08 Jul 2021 09:10:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1975903.1625762985.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 08 Jul 2021 12:49:45 -0400 Message-ID: <1975904.1625762985@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Thu, Jul 8, 2021 at 2:26 AM Saraswat, Dhruv < > dhruv.saraswat@thermofisher.com> wrote: >> We have a table in which 1 of the columns is called =E2=80=98name=E2=80= =99 with a datatype >> of =E2=80=98name=E2=80=99. This column stores username values, for exam= ple =3D=3D> >> dhruv.saraswat@thermofisher.com > I unfortunately don't know the answer to your primary query but you are > definitely misusing the "name" datatype. Indeed. I suspect that this was done as some sort of substitute for declaring the column with collation "C", and the reason it's acting differently in v12 is related to the fact that name columns are no longer forced to behave as though they have collation "C". We don't have enough details to be sure of that though. regards, tom lane