Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSPcg-0006zM-H6 for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 15:52:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSPcf-0006d2-NA for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 15:52:33 +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 1eSPcf-0006cr-9P for pgsql-general@lists.postgresql.org; Fri, 22 Dec 2017 15:52:33 +0000 Received: from smtp61.i.mail.ru ([217.69.128.41]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eSPcY-0008Nk-N2 for pgsql-general@postgresql.org; Fri, 22 Dec 2017 15:52:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=i3dxsbjf9YOvfBya8jgPQmPDaLMQym4c1yYlgIJfrFg=; b=Q1wIjKnTekbi5gqTYNV1/rUiq6mMG9ThaHURc0aXpufdvN9ilJ6g2YgXc1/v+4PdqjLl36poJwzy7TILIujmP+37GxtX+e5u1IPQjax16FJTgEPAMQLbhWRBvuT6E2J1TzbL0fB4Mp8EdplzaVgi4KiRoXH/6/2IpZYU6aAcEQc=; Received: by smtp61.i.mail.ru with esmtpa (envelope-from ) id 1eSPcV-0001e0-JT; Fri, 22 Dec 2017 18:52:24 +0300 Subject: Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices To: Peter Geoghegan Cc: pgsql-general General References: <9dee2bb7-4fc8-65a6-3bc1-9dd9e99ffe4a@mail.ru> From: rihad Message-ID: <2cd6c2cd-5d2b-bc7a-b86a-9ae9406bd33a@mail.ru> Date: Fri, 22 Dec 2017 19:52:20 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp61.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-7FA49CB5: 0D63561A33F958A5A0978D2D9EC15FB838DC37DD08FA7BB7D0B6CCA9E734E2D5725E5C173C3A84C3C8F21CEC4765490D3450EBF97ED0DE2789C8E7BF4648B176C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F2AF38021CC9F462D574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: B19AB4DAF1EA2FB58A8BBB454389F7B4D03DB288ABA50E5AB43479B5796A72FA17B891CEFFF4CBBCABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/22/2017 07:43 PM, Peter Geoghegan wrote: > I have no idea. Maybe something to do with not actually using the same > collation provider? > > The freebsd package contains modifications to make icu work, or at > least did. Possibly, you just stopped using the same collation > provider, without even realizing it, because they switched over to a > new provider without accounting for pg_upgrade. If so, then that's a > bug in the package. This is a total speculation, but makes a certain > amount of sense to me. Exactly! 9.6.6 port options include ICU: OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_UNSET+=DTRACE OPTIONS_FILE_UNSET+=GSSAPI OPTIONS_FILE_SET+=ICU OPTIONS_FILE_SET+=INTDATE OPTIONS_FILE_UNSET+=LDAP OPTIONS_FILE_UNSET+=NLS OPTIONS_FILE_UNSET+=OPTIMIZED_CFLAGS OPTIONS_FILE_UNSET+=PAM OPTIONS_FILE_UNSET+=SSL OPTIONS_FILE_SET+=TZDATA OPTIONS_FILE_SET+=XML OPTIONS_FILE_UNSET+=MIT_KRB5 OPTIONS_FILE_UNSET+=HEIMDAL_KRB5 10.1 options don't: OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_UNSET+=DTRACE OPTIONS_FILE_UNSET+=GSSAPI OPTIONS_FILE_SET+=INTDATE OPTIONS_FILE_UNSET+=LDAP OPTIONS_FILE_UNSET+=NLS OPTIONS_FILE_UNSET+=OPTIMIZED_CFLAGS OPTIONS_FILE_UNSET+=PAM OPTIONS_FILE_UNSET+=SSL OPTIONS_FILE_SET+=TZDATA OPTIONS_FILE_SET+=XML Thank you and others who have responded so much for your tips!