Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9Xf-0007cs-PW for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:24:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jc9Xe-0006nz-61 for pgsql-general@arkaria.postgresql.org; Fri, 22 May 2020 15:24:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9Xd-0006nr-UG for pgsql-general@lists.postgresql.org; Fri, 22 May 2020 15:24:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc9Xa-0007Pu-JB for pgsql-general@postgresql.org; Fri, 22 May 2020 15:24:57 +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 04MFOfPb028283; Fri, 22 May 2020 11:24:42 -0400 From: Tom Lane To: "Andrus" cc: "Adrian Klaver" , "pgsql-general" Subject: Re: Query returns no rows in pg_basebackup cluster In-reply-to: References: <2B1267647FD14565B73801AF12CA1A88@dell2> <17696.1590101245@sss.pgh.pa.us> <25753.1590157378@sss.pgh.pa.us> Comments: In-reply-to "Andrus" message dated "Fri, 22 May 2020 18:16:28 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28281.1590161081.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 22 May 2020 11:24:41 -0400 Message-ID: <28282.1590161081@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Andrus" writes: >> Possibly you could try running contrib/amcheck on the index in question >> and see if it reports any issues. > I tried and it reports error > ERROR: item order invariant violated for index "desktop_baas_liigid_idx= " > DETAIL: Lower index tid=3D(3,15) (points to index tid=3D(16,4098)) high= er index tid=3D(3,16) (points to index tid=3D(17,4098)) page = > lsn=3D292/630C0CE8. > SQL state: XX002 Uh huh ... and I'll bet the same test on the source server is just fine? I don't find it surprising in the least that different platforms have different ideas on fine points like how to sort a leading underscore. Those things just aren't that well standardized. regards, tom lane