Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSN8r-000785-4M for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 13:13:37 +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 1eSN8q-0006vz-MG for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 13:13:36 +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 1eSN5a-0001Ln-Ck for pgsql-general@lists.postgresql.org; Fri, 22 Dec 2017 13:10:14 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eSN5T-0004nu-0d for pgsql-general@postgresql.org; Fri, 22 Dec 2017 13:10:13 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 727904C904; Fri, 22 Dec 2017 14:10:04 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id x3QBc820uYQR; Fri, 22 Dec 2017 14:09:50 +0100 (CET) Message-ID: <1513948189.2384.3.camel@cybertec.at> Subject: Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices From: Laurenz Albe To: rihad , pgsql-general General Date: Fri, 22 Dec 2017 14:09:49 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk rihad wrote: > Hi there, this is a reproducible error. We recently pg_upgraded our > production database to 10.1 from 9.6.6. The upgrade runs fine with the > suggestion to analyze all data. [...] > Trying to find data using the specified indices fails to find matching rows: [...] > reindexing the table fixes the issue: Did you also upgrade the operating system or at least libc? Then the problem could come from a modified collation. Compare https://www.postgresql.org/message-id/CB4D1C6BAA80CF146CB0D4F2%40eje.credativ.lan Yours, Laurenz Albe