Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTD4u-000345-Kg for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 21:13:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTD4t-0007KU-4w for pgsql-general@arkaria.postgresql.org; Wed, 13 Jun 2018 21:13:15 +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.89) (envelope-from ) id 1fTD4s-0007KK-TN for pgsql-general@lists.postgresql.org; Wed, 13 Jun 2018 21:13:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTD4q-0000uK-6x for pgsql-general@postgresql.org; Wed, 13 Jun 2018 21:13:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5DLD8Vp007080; Wed, 13 Jun 2018 17:13:08 -0400 From: Tom Lane To: Andrey Lizenko cc: pgsql-general@postgresql.org Subject: Re: Replica string comparsion issue In-reply-to: References: <32729.1528922281@sss.pgh.pa.us> Comments: In-reply-to Andrey Lizenko message dated "Wed, 13 Jun 2018 23:03:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7078.1528924388.1@sss.pgh.pa.us> Date: Wed, 13 Jun 2018 17:13:08 -0400 Message-ID: <7079.1528924388@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrey Lizenko writes: > Another point regarding collations: query with ORDER BY returns different > record set on master and on replica if more than one column used: When I saw Peter's reply, I figured he'd nailed it, and this seems to be more evidence pointing in that direction. If the standby's OS sorts strings differently than the master does, the index will seem corrupt to it, even if it's fine on the master. regards, tom lane