Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSLwS-0002Rj-0J for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 11:56:44 +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 1eSLwR-00018Y-4a for pgsql-general@arkaria.postgresql.org; Fri, 22 Dec 2017 11:56:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eSLwQ-00018O-Nt for pgsql-general@lists.postgresql.org; Fri, 22 Dec 2017 11:56:42 +0000 Received: from smtp32.i.mail.ru ([94.100.177.92]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eSLwI-00023N-Ts for pgsql-general@postgresql.org; Fri, 22 Dec 2017 11:56:41 +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:MIME-Version:Date:Message-ID:To:Subject:From; bh=HWu0HJgUD9ZRUSf2COFdKfPatBEf9yv4h/lfLgU2afY=; b=a4nG0LFF49HYbkIYSPftDTRnRYRe9un2CEL4oGuhUFKnzWA9CkGPPaCtYLrg+lYq0TjfSdFX19BHSUDiFqe4Wp0+HGlWHzFcRqNwdVOIh9/LQtMjYGIJhAz9xf1iGSAOJRkWStbTJJlvdPl+PUqw498i8MqiAuqE7e+U40udpN0=; Received: by smtp32.i.mail.ru with esmtpa (envelope-from ) id 1eSLwF-0002PB-2u for pgsql-general@postgresql.org; Fri, 22 Dec 2017 14:56:31 +0300 From: rihad Subject: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices To: pgsql-general General Message-ID: Date: Fri, 22 Dec 2017 15:56:30 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: smtp32.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-7FA49CB5: 0D63561A33F958A59DEE5AB3DA37FB0260A9B06C871EA6187E044AA189DCF107725E5C173C3A84C3C8F21CEC4765490DA67E5EFD9C1490F6D528F8CDFD49EC53C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F2AF38021CC9F462D574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: B19AB4DAF1EA2FB58A8BBB454389F7B45286A2ED2B2A3FE55E08040098C261F0CA1B0AE468EAC1C9ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I forgot to mention the real problem: the mentioned unique constraint didn't work and allowed duplicate rows to get inserted into the table until the duplicates were manually removed the the index was rebuilt.