Re: Collations and Replication; Next Steps

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Matthew Kelly <mkelly(at)tripadvisor(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Peter Geoghegan <pg(at)heroku(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Matthew Spilich <mspilich(at)tripadvisor(dot)com>
Subject: Re: Collations and Replication; Next Steps
Date: 2014-09-18 00:16:37
Message-ID: CA+TgmobbrqUD6FiDdqpdT35X83e3pPEZdzko7uZp-08MFJdm5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Sep 17, 2014 at 10:06 AM, Matthew Kelly <mkelly(at)tripadvisor(dot)com> wrote:
> Let me double check that assertion before we go too far with it.
>
> Most of the problems I've seen are across 5 and 6 boundaries. I thought I had case where it was within a minor release but I can't find it right now. I'm going to dig.
>
> That being said the sort order changes whether you statically or dynamically link (demonstrated on 4+ machines running different linux flavors), so at the point I have no reason to trust the stability of the sort across any build. I legitimately question whether strcoll is buggy. Ex. I have cases where for three strings a, b and c: a > b, but (a || c) < (b || c). That's right postfixing doesn't hold. It actually calls into question the index scan optimization that occurs when you do LIKE 'test%' even on a single machine, but I don't want to bite that off at the moment.
>
> My mentality has switched to 'don't trust any change until shown otherwise', so that may have bled into my last email.

Of course, there's also the question of whether ICU would have similar
issues. You're assuming that they *don't* whack the collation order
around in minor releases, or at least that they do so to some lesser
degree than glibc, but is that actually true?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2014-09-18 00:21:35 Re: Final Patch for GROUPING SETS
Previous Message Josh Berkus 2014-09-18 00:11:33 Yet another abort-early plan disaster on 9.3