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 1jL2j2-0004L1-HB for pgsql-bugs@arkaria.postgresql.org; Sun, 05 Apr 2020 10:42:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jL2j1-0002qg-7s for pgsql-bugs@arkaria.postgresql.org; Sun, 05 Apr 2020 10:41:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL2j1-0002qY-1J for pgsql-bugs@lists.postgresql.org; Sun, 05 Apr 2020 10:41:59 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL2iy-0002PV-05 for pgsql-bugs@lists.postgresql.org; Sun, 05 Apr 2020 10:41:58 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 43D905C01A6; Sun, 5 Apr 2020 06:41:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 05 Apr 2020 06:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=OVcSr8H9x/FZL38y+5UEWadReV0Be1kHMaLOQhB41 zg=; b=tzten9UZP8aWFXZOg7Wgq4QvTW/orYNcGRRomu9tdbwndr0gMjg5DHKNg 7iYvbmN6U8E52FsIGlRnK//MlPOZgrQg/iqLnX49cfNpNNA2v5V/iV9J8+NxmW9d 12fyz2zCkG4rrA/bQIq8/gtuipD+P6IqWbh+IyWQYYpI90EaNhAywHNH3hGiwrbH HrKC9bsQXEl07lB75W1OpElxz4Ciy0HBEsGakbft4nV8/rRQVr4QNw/3VYwxBud6 u7g868gcHEyFyXcCGr/EHKVhf1l9KWrqBgGTXJASGIZMfqFvQYHtluL8l/y3eKky DKdCTL6akL+tBj6sF1fWnU6Ji6OlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddugdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuffhomhgrih hnpedvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegvddrvddufedrvdeg udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvg htvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CA0E306D24A; Sun, 5 Apr 2020 06:41:52 -0400 (EDT) Subject: Re: BUG #16333: position() function not equivalent to strpos() function when comparing citext To: Tom Lane References: <16333-dd25eea9d90e244d@postgresql.org> <12376.1585789484@sss.pgh.pa.us> <9817af55-fbe4-b342-b641-637f1308ef96@2ndquadrant.com> <28841.1585863966@sss.pgh.pa.us> Cc: me@reynolds.tj, pgsql-bugs@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sun, 5 Apr 2020 12:41:51 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <28841.1585863966@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-04-02 23:46, Tom Lane wrote: >> Doesn't seem fixable. Collations are probably a better way of dealing >> with this. > > Yeah, now that we can do non-deterministic collations, it seems like > citext is on the road to obsolescence. Do we have a documentation > example of how to build a simple CI collation? Yes, in PG12 there is a "tip" box in the citext chapter with a link to the collation documentation which contains a command to create a case-insensitive collation. So this should be pretty easy to find even for casual users. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services