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 1jjyRR-0007FT-Qa for pgsql-general@arkaria.postgresql.org; Sat, 13 Jun 2020 05:10:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jjyRQ-0003Zg-Nf for pgsql-general@arkaria.postgresql.org; Sat, 13 Jun 2020 05:10:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjyRQ-0003ZY-FG for pgsql-general@lists.postgresql.org; Sat, 13 Jun 2020 05:10:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjyRO-0006HJ-4O for pgsql-general@postgresql.org; Sat, 13 Jun 2020 05:10:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05D5Am6N803028; Sat, 13 Jun 2020 01:10:48 -0400 From: Tom Lane To: Ron cc: "pgsql-general@postgresql.org >> PG-General Mailing List" Subject: Re: Returning SELECTed rows immediately instead of all at the end? In-reply-to: References: Comments: In-reply-to Ron message dated "Fri, 12 Jun 2020 23:39:58 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <803026.1592025048.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 13 Jun 2020 01:10:48 -0400 Message-ID: <803027.1592025048@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron writes: > I'm running amcheck on a set of indices (test machine, not prod) and wan= t to = > track the progress.=C2=A0 Is there a SELECT clause that makes rows displ= ay as = > they are created, or do I have to explicitly call bt_index_check() from = a = > shell script or SQL function in order to see the output as each index is= = > checked? If you're willing to code at the libpq level, see https://www.postgresql.org/docs/current/libpq-single-row-mode.html regards, tom lane