Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGOVo-0001r8-OU for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 14:24:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGOVn-0000Lf-Je for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 14:24:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGOSi-0003ls-7p for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 14:21:40 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iGOSe-0002kq-J5 for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 14:21:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570198887; bh=1DvX4fpyxHKEEuYjiDsW93erEKecQxccUlE66mohwlQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=PXVYLMGs4FPX9UeORs+lquUdlbu8/noqPCLvIXmzp0x5PJTYgG5BE5dEQu5j6EjZ6 Vg8Tj968k0bSqLpuqoH5+pwsC+ud7DOPqwO13jH9QwMhwdl7UQLuafA5nyFt5s6urh TQSjLKKvrixI67nTowyhLMKWPu1GHiLi0uMvqDOw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.20] ([188.174.170.205]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUowb-1igTsk0iNV-00QjIL for ; Fri, 04 Oct 2019 16:21:27 +0200 Subject: Re: Postgres 12: backend crashes when creating non-deterministic collation To: pgsql-general@lists.postgresql.org References: <58edf560-f277-8993-abe3-22d57dc11c50@gmx.net> <9ad3c92eb92c39c1256f151ff553110f9928fadf.camel@cybertec.at> From: Thomas Kellerer Message-ID: Date: Fri, 4 Oct 2019 16:21:26 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <9ad3c92eb92c39c1256f151ff553110f9928fadf.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:GG81x6CoGk3ytRk97gI3DFaqq7IdE7oHds6wcmWLqBjWNqNcyfh wX+UK7XuKHB5YIkYRXFHnoeC/k5e7NBwPUTBlGbwKf7SdIFZ8NhPHL9NjRuv3eDCgVz2VJZ qPKEhzvbpLIXG5+Jbeoq4z6tH1mUmBvdxeGIm14y5y03itlMKexE2giobWNTG0vvWqzZ7/P NQniMU3KL8Jx8d6LtsROg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ZQdmDJNH1B4=:fjyiP9eNHmBXOIvr6TcxiE ap1karWNwK1cMIs28m83wc12cqlnRPQTmTlYPmvtQgH4XCZ346XWzIM4zUkGTkv1JDIIasSbg em3SgYg+72qRdbBY27w4rpxxmhbrGczgR71ZZT0qmhEn9F1OsdgdVZMrs34gWT4YAUuAJME8r uDjFYbp+gPAi/aiumcOXMd/JzhtYSFLpdZeR/Nhs2aF6Vjo7y4iw/bI7ALsYCvRM3f9gitAZV lhdQh/Soacn5tOPQbHxO3HpOnofr/ULUQXQ3Wopy4AwJg2ZP1WEQFI91rT8Q/i0Idv0lPI6lt QPL9BjNNxg4JwVJjHZUYmvBnyeP/LDdlFDt6kIiovJLoVuv43N6azdjOic1ArzpvxHKkUBiM3 kUEQtaBXQQsKglBKI/6e0a0BZNybcvLaV1aN4bDhKHMrzWe+Mw20GGw9QHRNVbHHvCOu6E6Ui pErVMxZ74L+nOAIh6joAk1Ghe/1CaJZvvkqr9skWlUk9tiwbPTTfSwyMBN63Yrcio7oWE9bE9 yaE+tqtX0Lp/vO3JmsuSv8d+37SaZkKS5d8Y8QQvOt0+bSjSh0tphKY4xa9zDIYYl8tmx7+an ZtEG27qiQb/3VZjwooPheE1jhTg0ry375Eq5cJn7HCzquA5tm16xO9U2B3NJeN/ovAXQkrY8F hTzjdHqrtWqLUbhtPv9CZ174f/oINhpPvHxcspXNEZlkSWSw6vIXIgtYDoR0h68OFcxIamlve z0UNuAscFaiDhs9sdFeoaE5rfqJoHjYefJk2+/OOtyYouaH0Z60+dfwOWPlgqQwWddgHVHs2x zaCvSi97eDTMbGPSyb09oeRKW+A0RDUGcPWFLqjDnVrXGly7Fl9cwVXrXZWtHgQxd9x1SYE0a UBWhfEBWFY1CSmeiWAfqmumVMoxfXxhDDYGf9AdIOox9ZKQr8REIxqCy1SvbAU0uWM9c5Mpa2 2a3rKhcT2GYwVcmEI6FBqVNGrqTU3Qledg+RlMikfqUcZnZniiUtoXZc3NR4DZc8D8R+YaWMK bD25mgXD0VzAb4etHA6NWDalPx000878Y5/QgnqujgFoZXsmQXzEi2OWJpFd6oraIOqsmHEON UKlNabUTHm5IMEqeJXq2i9Av9jkSIFcnjKEzR58pnEDbAUXhstncanASzLSSuAUnoGazIZDmC bEu+POBk6YOlLLXH2voyZ4fcYXE8LzdIP28Eo8vqrVsii86JSNPllOaLm8itIk9Mm4qspoNIm gx4e1nErHBXkYIgjGhIKENHhAGa3z2iPoAwyQF84k4ap1A0du4L8PWKb56aw= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe schrieb am 04.10.2019 um 16:04: >> I was trying to learn how the new non-deterministic collations in v12 >> work, but the following makes the backend crash: >> >> CREATE COLLATION de_ci (provider =3D icu, locale =3D 'de-x-icu', >> deterministic =3D false); >> >> Which leads to: >> >> 2019-10-04 11:54:23 CEST LOG: server process (PID 7540) was >> terminated by exception 0xC0000005 >> >> I might have misunderstood how to use deterministic to create a case- >> insensitive collation, but I don't think the backend should crash if >> I do something wrong ;) > > Yes, there is a bug somewhere. FWIW, it works on my Linux system. It also works on Windows when I specify "correct" locale names - the above= seems to be an edge case. Is it worth the effort to report that through the bug reporting form? > To get a case insensitive collation you'd have to use something like > > LOCALE =3D 'de-DE-u-ks-level2' Creating works, but apparently on Windows ICU does not support this. The following works fine on Linux (returns both rows), but not on Windows = (returns nothing) create collation de_ci (provider =3D icu, locale =3D 'de-DE-u-ks-level2= ', deterministic =3D false); create table test (name text); insert into test values ('FOO'), ('Foo'); select * from test where name =3D 'foo' collate de_ci; Not a big deal, but might surprise some people. Thomas