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 1jZDm6-0006NL-FC for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2020 13:19:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZDm5-0006XX-6T for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2020 13:19:45 +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 1jZDm5-0006XO-0Z for pgsql-bugs@lists.postgresql.org; Thu, 14 May 2020 13:19:45 +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 1jZDm2-0007DO-Gw for pgsql-bugs@lists.postgresql.org; Thu, 14 May 2020 13:19:44 +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 04EDJdNJ024731; Thu, 14 May 2020 09:19:40 -0400 From: Tom Lane To: =?UTF-8?B?S29uc3RhbnRpbiBEYXZ5ZGVua2E=?= cc: pgsql-bugs@lists.postgresql.org Subject: Re: =?UTF-8?B?UmU6QlVHICMxNjQzNDogc29tZSBkYXRhIGxvc3Q=?= In-reply-to: <1589443991.737893612@f171.i.mail.ru> References: <1589443991.737893612@f171.i.mail.ru> Comments: In-reply-to =?UTF-8?B?S29uc3RhbnRpbiBEYXZ5ZGVua2E=?= message dated "Thu, 14 May 2020 11:13:11 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <24729.1589462379.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 May 2020 09:19:39 -0400 Message-ID: <24730.1589462379@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?UTF-8?B?S29uc3RhbnRpbiBEYXZ5ZGVua2E=3D?=3D writes: > I don't understand that... why=C2=A0=C2=A0"insert into select"=C2=A0stat= ement query can see all rows, > =C2=A0but other select queries can not see all rows. I wonder if you have a corrupt index in there. REINDEX should fix it if so. regards, tom lane