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 1jk4R9-0002Kp-5K for pgsql-general@arkaria.postgresql.org; Sat, 13 Jun 2020 11:34: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 1jk4R8-0005R7-2Q for pgsql-general@arkaria.postgresql.org; Sat, 13 Jun 2020 11:34: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 1jk4R7-0005R0-Qq for pgsql-general@lists.postgresql.org; Sat, 13 Jun 2020 11:34:57 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jk4R5-0003Hl-TK for pgsql-general@postgresql.org; Sat, 13 Jun 2020 11:34:57 +0000 Received: by mail-oi1-x22f.google.com with SMTP id x202so11264330oix.11 for ; Sat, 13 Jun 2020 04:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=Qkz/KU+znoWem115PqNicx1HX7ZK2+ZhSFrcdXdEII4=; b=SWTRqFO29gGeqEXdjIPw6/BCyBmNKfmLrpEXJ+uEl1rdCVZ3c33dcvMOjc8TvRMPv3 O1VJfl1oTdbvNIlCT5ZoF/4MCyr2wmX7M+l6xRnWKQSpW6WCsplcGvriuz2ICqr+y7FV QYGJ6G1aOnTZBXfYRdkHwG1rrAQveDRqBlfzbcwXGmH2JCTAF1N9WNRZCFf6FwYwPOnC G/6S6w4M0zGpRJzgTrBx6FpnYB4m34QaCelAx0/OgXhanIdO7CDJwVIu7Fc6kFObgGV1 yBFgRmxqLXuuW7djfobSoBNDsd2E4FwlR8MPAXpFT7W7FTtcTEO1W5SM2H2cPTgQFCpb 99gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Qkz/KU+znoWem115PqNicx1HX7ZK2+ZhSFrcdXdEII4=; b=imw7FnhVdL5+GFtO6RsfsT1Kn5TaxVWth4JrsuF/cW0RZexMpbgzJQWcZjkPQN7dA/ +7Fn02Zy5GBMWuLgQaru0J44BEtu1XjvJFKG6O3rMfhOVY/k4hvPvroNFvbiYNmZMoIc Vdshy1dhe9soTAuVU3jsywVJCmfp0fI/H+XdDJrxrNSX7jGbba4hC2Xd1HCAmfZeb9U9 8iuYQaw7majY/cYGW9ScirVozoigD1BVFWwkS9FqlRxz57ajDPSeZcL3SA+OvOvkl9T0 DUNIRLxRp3aBz+cfA1cqcWLSdDIL6G0IwRXCWJNEvs6Ag5WJXYOrBxL0ic52Q4x9/7Li 58lg== X-Gm-Message-State: AOAM532B2LBRPtqWtPmIC5l1j+yUeG0cocs2rDZqY9f7H3r0n2Gjz9HE l6Qfpip7QgrbypsP3zHY9luHYb9pdBnLEw== X-Google-Smtp-Source: ABdhPJzQuI+XHsHz6J/LS+tKepotCwC3Az/k8IHo976hoVhLSFqf51CJT+DcoSpAVksv6uFj4Dsk8A== X-Received: by 2002:a05:6808:45:: with SMTP id v5mr2289544oic.140.1592048093701; Sat, 13 Jun 2020 04:34:53 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id m13sm2004975oou.25.2020.06.13.04.34.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Jun 2020 04:34:52 -0700 (PDT) Subject: Re: Returning SELECTed rows immediately instead of all at the end? To: "pgsql-general@postgresql.org >> PG-General Mailing List" References: From: Ron Message-ID: <53616aa4-a363-a672-ce3b-d72cd302ef1b@gmail.com> Date: Sat, 13 Jun 2020 06:34:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------F2DD7F807BA5AC3ED429EB06" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------F2DD7F807BA5AC3ED429EB06 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 6/13/20 12:04 AM, David G. Johnston wrote: > On Friday, June 12, 2020, Ron > wrote: > > > I'm running amcheck on a set of indices (test machine, not prod) and > want to track the progress.  Is there a SELECT clause that makes rows > display as they are created, > > > No > > 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? > > > You could wrap the function call in a custom plpgsql function (or just do > a plpgsql loop) and side channel output via notice but i’d probably just > do a shell script wrapper absent any other constraint. Yeah, a shell script was my next option.  Thanks. -- Angular momentum makes the world go 'round. --------------F2DD7F807BA5AC3ED429EB06 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 6/13/20 12:04 AM, David G. Johnston wrote:
On Friday, June 12, 2020, Ron <ronljohnsonjr@gmail.com> wrote:

I'm running amcheck on a set of indices (test machine, not prod) and want to track the progress.  Is there a SELECT clause that makes rows display as they are created,

No
 
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?

You could wrap the function call in a custom plpgsql function (or just do a plpgsql loop) and side channel output via notice but i’d probably just do a shell script wrapper absent any other constraint.

Yeah, a shell script was my next option.  Thanks.

--
Angular momentum makes the world go 'round.
--------------F2DD7F807BA5AC3ED429EB06--