Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jA0Bd-0003Qj-Qd for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 23:45:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jA0Bc-0000V2-Jz for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 23:45:52 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jA0Bc-0000Uv-B1 for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 23:45:52 +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 1jA0BV-0005RW-Tn for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 23:45:51 +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 025Njbpc016089; Thu, 5 Mar 2020 18:45:37 -0500 From: Tom Lane To: James Coleman cc: Tomas Vondra , Michael Paquier , Rafia Sabih , Peter Geoghegan , Simon Riggs , Shaun Thomas , Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Korotkov , PostgreSQL Developers , Alvaro Herrera Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort) In-reply-to: References: <20190721113422.hjubqs45xxpnldn7@development> <20190730001711.hprrcx3ntk57wuqv@development> <20190904191710.gogtnktjbvtg5zq3@development> <20190909215538.42hrv6j4z5ztcft4@development> <20190928230049.k4l2mayun7jomhxy@development> <20191129060146.GH2505@paquier.xyz> <20191201004716.cenkc33em2lnrrdl@development> <20200121142529.wpickvfefp7lok4p@development> <13718.1583448772@sss.pgh.pa.us> Comments: In-reply-to James Coleman message dated "Thu, 05 Mar 2020 18:37:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16087.1583451937.1@sss.pgh.pa.us> Date: Thu, 05 Mar 2020 18:45:37 -0500 Message-ID: <16088.1583451937@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Coleman writes: > That's what I figured, but as I mentioned I've having trouble figuring out > how the fact that an analyze is in flight is determined. I assume it's > something that lives of the EState or similar, but I'm not seeing anything > obvious. AFAIR, it's just whether or not the current planstate node has an instrumentation struct attached. regards, tom lane