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 1n0tU3-0001bh-6M for pgsql-docs@arkaria.postgresql.org; Fri, 24 Dec 2021 22:56:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n0tU1-0006cV-44 for pgsql-docs@arkaria.postgresql.org; Fri, 24 Dec 2021 22:56:17 +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 1n0tU0-0006YS-Sn for pgsql-docs@lists.postgresql.org; Fri, 24 Dec 2021 22:56:16 +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 1n0tTy-0000gA-6j for pgsql-docs@lists.postgresql.org; Fri, 24 Dec 2021 22:56:15 +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 1BOMuCYk1125956; Fri, 24 Dec 2021 17:56:12 -0500 From: Tom Lane To: =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= cc: Pg Docs Subject: Re: ^@ operator for text In-reply-to: <10BC6099-7829-469A-BF19-0928B0DD5E35@ya.ru> References: <164025929698.19324.7276266494030468977@wrigleys.postgresql.org> <528689.1640272714@sss.pgh.pa.us> <10BC6099-7829-469A-BF19-0928B0DD5E35@ya.ru> Comments: In-reply-to =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= message dated "Fri, 24 Dec 2021 14:52:56 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1125954.1640386572.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 24 Dec 2021 17:56:12 -0500 Message-ID: <1125955.1640386572@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg=3D=3D?=3D wr= ites: > 23 =D0=B4=D0=B5=D0=BA. 2021 =D0=B3., =D0=B2 18:18, Tom Lane =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >> I did do something about this recently, though: >> https://git.postgresql.org/gitweb/?p=3Dpostgresql.git&a=3Dcommitdiff&h=3D= 2ae5d72f0 > I think need to mention that the main benefits of this operator (vs func= tion starts_with) is the using with special SP-GIST index. So searching an= d filtering can be indexed. Not really true anymore, see a148f8bc0. regards, tom lane