Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ainIp-0007oa-TB for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Mar 2016 18:14:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ainIp-0003se-FZ for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Mar 2016 18:14:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ainIB-0002EY-La for pgsql-bugs@postgresql.org; Wed, 23 Mar 2016 18:14:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ainI9-0007NR-0Q for pgsql-bugs@postgresql.org; Wed, 23 Mar 2016 18:14:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2NIDuED012341; Wed, 23 Mar 2016 14:13:56 -0400 From: Tom Lane To: Peter Geoghegan cc: Magnus Hagander , Noah Misch , pgsql-bugs , Marc-Olaf Jaschke , Robert Haas Subject: Re: Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5) In-reply-to: References: <111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com> <9688.1458605021@sss.pgh.pa.us> <16214.1458615257@sss.pgh.pa.us> <19132.1458688784@sss.pgh.pa.us> <20160323024445.GA1306688@tornado.leadboat.com> <31913.1458747836@sss.pgh.pa.us> <1979.1458749625@sss.pgh.pa.us> <10712.1458755212@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 23 Mar 2016 10:58:41 -0700" Date: Wed, 23 Mar 2016 14:13:56 -0400 Message-ID: <12340.1458756836@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Geoghegan writes: > What about the existing caller of strxfrm(), convert_string_datum()? convert_string_datum is, and always has been, used only for planner estimation purposes. We do not care if it sometimes gets inaccurate answers. Even if it's as wrong as it can possibly be, that will only affect planner estimates to the extent of wrongly interpolating between the endpoints of a histogram bin, so that the effects are no worse than about 1/statistics_target. And there are bigger limitations on the accuracy of those estimates anyway, notably that we use the same stats regardless of the collation that applies to a particular WHERE-clause operator. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs