pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@heroku.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Noah Misch <noah@leadboat.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Cc: Marc-Olaf Jaschke <marc-olaf.jaschke@s24.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5)
Date: Wed, 23 Mar 2016 14:32:26 -0400
Message-ID: <13341.1458757946@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM3SWZQdRibwD1FmYTHjqgHUsA2oacEciU0=atUAROwf5ocaSA@mail.gmail.com>
References: <111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com>
	<9688.1458605021@sss.pgh.pa.us>
	<CA+TgmoZE6ERMy7oJWhDVz_W=siZLMBBwBp1jxiuvjrROVN7anw@mail.gmail.com>
	<CAM3SWZT04ZOVdh5j6kA4hX3kg3XLir28jsvrqT2Cxhv1QDy9kQ@mail.gmail.com>
	<CAM3SWZRKdfKhBLRXzQtMK2WACC2oo_Lq=FWAup4-xvjxkUoEbA@mail.gmail.com>
	<16214.1458615257@sss.pgh.pa.us>
	<CAM3SWZQnF3AfMwJHVdjmfmy9T2D2esX04aTfwZo2kNvwUp8OEQ@mail.gmail.com>
	<CAM3SWZTums8PyGAHUpj=3gpt-xiGbbLqUun3mKK8-aTh-z9R2A@mail.gmail.com>
	<CA+TgmoYkvRZ6BfjRj3b68p2iuwXF5auaR2DLkpFaJj+LpZZu0A@mail.gmail.com>
	<19132.1458688784@sss.pgh.pa.us>
	<20160323024445.GA1306688@tornado.leadboat.com>
	<CA+TgmoahtpvHZbtE=Gapq=HvA-N0y5qgnfMJWF0hXE9ibJGXzA@mail.gmail.com>
	<31913.1458747836@sss.pgh.pa.us>
	<1979.1458749625@sss.pgh.pa.us>
	<CA+TgmoYhbDKWh6xE4tkVY-LtcQqjByzoRtS_ecUuUd1MxGk-3A@mail.gmail.com>
	<10712.1458755212@sss.pgh.pa.us>
	<CAM3SWZSDVO_4tyDPgYX5NWFW=3BcCLpHV-vUtKKJ-VryqoKjVQ@mail.gmail.com>
	<CABUevEyk3Z1mQV=Zi-kt6gONCOw7sOKrim+XP+KMEao4rJ0Wcw@mail.gmail.c! om>
	<CAM3SWZSUwaPZ3fVTQaugDWucs4MJHBcYYWD726tiiQrwHaVE0g@mail.gmail.com>
	<CABUevEz09i3YpEbLkV6JXSeYZs2e-yFYh9Ui1-cT2r=K72fFBQ@mail.gmail.com>
	<CAM3SWZQdRibwD1FmYTHjqgHUsA2oacEciU0=atUAROwf5ocaSA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Geoghegan <pg@heroku.com> writes:
> On Wed, Mar 23, 2016 at 11:04 AM, Magnus Hagander <magnus@hagander.net> wrote:
>> That said, my main point is that I do not think the knob is something that
>> should be tuned by the average end user. For most people, that should be
>> left to the packagers for the platform, who can make an informed choice
>> about if it's safe to turn it on.

> I could get behind that if we really make an effort to help them make
> an informed choice. The abbreviated keys optimization is highly
> valuable, and I put a lot of work into it, as did Robert.

I realize that, and I'm sympathetic, but I'm afraid it also means that
your judgment in this matter is rather biased.

I do not think that end users can be expected to know whether this is safe
to turn on, and TBH I do not think that most packagers will either.  My
opinion is that our only guaranteed-safe option is to turn it off, period,
no exceptions for platforms that we've not yet found a failure case for.
We can consider turning it back on later, once we've done vastly more
study and testing than has evidently been done to date.  One thing I'm
going to want to know is what was the root cause of glibc's bug, and what
is the reason to think that other implementations are going to be any more
reliable.  At this point I'm disinclined to trust any implementation that
can't point to a structural reason (e.g., sharing code) to believe that
strcoll and strxfrm must yield equivalent answers.

(In other words, I want an #ifdef NOT_USED, which is even less effort
than either a GUC or a configure option ;-(.  As well as being something
that we won't need to document and support indefinitely.)

			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



view thread (79+ messages)  latest in thread

Message-ID: <13341.1458757946@sss.pgh.pa.us>
Permalink:  ../13341.1458757946@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13341.1458757946@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@heroku.com, magnus@hagander.net, noah@leadboat.com, marc-olaf.jaschke@s24.com, robertmhaas@gmail.com
  Subject: Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5)
  In-Reply-To: <13341.1458757946@sss.pgh.pa.us>
  References: <111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com> <CAM3SWZRKdfKhBLRXzQtMK2WACC2oo_Lq=FWAup4-xvjxkUoEbA@mail.gmail.com> <16214.1458615257@sss.pgh.pa.us> <CAM3SWZQnF3AfMwJHVdjmfmy9T2D2esX04aTfwZo2kNvwUp8OEQ@mail.gmail.com> <CAM3SWZTums8PyGAHUpj=3gpt-xiGbbLqUun3mKK8-aTh-z9R2A@mail.gmail.com> <CA+TgmoYkvRZ6BfjRj3b68p2iuwXF5auaR2DLkpFaJj+LpZZu0A@mail.gmail.com> <19132.1458688784@sss.pgh.pa.us> <20160323024445.GA1306688@tornado.leadboat.com> <CA+TgmoahtpvHZbtE=Gapq=HvA-N0y5qgnfMJWF0hXE9ibJGXzA@mail.gmail.com> <31913.1458747836@sss.pgh.pa.us> <1979.1458749625@sss.pgh.pa.us> <CA+TgmoYhbDKWh6xE4tkVY-LtcQqjByzoRtS_ecUuUd1MxGk-3A@mail.gmail.com> <10712.1458755212@sss.pgh.pa.us> <CAM3SWZSDVO_4tyDPgYX5NWFW=3BcCLpHV-vUtKKJ-VryqoKjVQ@mail.gmail.com> <CAM3SWZSUwaPZ3fVTQaugDWucs4MJHBcYYWD726tiiQrwHaVE0g@mail.gmail.com> <CABUevEz09i3YpEbLkV6JXSeYZs2e-yFYh9Ui1-cT2r=K72fFBQ@mail.gmail.com> <CAM3SWZQdRibwD1FmYTHjqgHUsA2oacEciU0=atUAROwf5ocaSA@mail.gmail.com> <13341.1458757946@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox