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 1mQObD-0007As-K0 for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Sep 2021 06:40:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQObC-00015j-HL for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Sep 2021 06:40:50 +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 1mQObC-000157-9r for pgsql-hackers@lists.postgresql.org; Wed, 15 Sep 2021 06:40:50 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQOb9-0005S7-VG for pgsql-hackers@lists.postgresql.org; Wed, 15 Sep 2021 06:40:49 +0000 Received: from mail.postgrespro.ru (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id F30E421CD251; Wed, 15 Sep 2021 09:40:46 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1631688047; bh=SvcvS1Y0FZUEi9E1vbMZ/deV4yhexgxb8k+rlLlcctM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=IrxT8z9lfSQWVuIJCcoPecRluJeXbOVafLG7gpClRHD5xWhkzrWswfO7zlF3VeNur SzTmx4ohRih3NCo1zZq7clW6K2N7CHVdoLBFb2Zca0EoP+ZKHMLjj9dTiNFc5EZyuw HFTo5MwuKtG5VxtUH3GsDQeMOzeZ6y6oESGqYj0c= MIME-Version: 1.0 Date: Wed, 15 Sep 2021 09:40:46 +0300 From: Alexander Pyhalov To: Etsuro Fujita Cc: "Andrey V. Lepikhov" , Zhihong Yu , Kyotaro Horiguchi , Justin Pryzby , PostgreSQL Hackers Subject: Re: Defer selection of asynchronous subplans until the executor initialization stage In-Reply-To: References: <20210331.101137.148208859959175708.horikyota.ntt@gmail.com> <52d944ea-7d41-1d16-01b7-8d1edf5ea972@postgrespro.ru> <659c37a8-3e71-0ff2-394c-f04428c76f08@postgrespro.ru> <8891e9b4-040f-6d71-fa63-3069046dfb3d@postgrespro.ru> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <932e6ed12832831592d01a3b06c16d63@postgrespro.ru> X-Sender: a.pyhalov@postgrespro.ru Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Etsuro Fujita писал 2021-08-30 12:52: > On Mon, Aug 30, 2021 at 5:36 PM Andrey V. Lepikhov > > To allow async execution in a bit more cases, I modified the patch a > bit further: a ProjectionPath put directly above an async-capable > ForeignPath would also be considered async-capable as ForeignScan can > project and no separate Result is needed in that case, so I modified > mark_async_capable_plan() as such, and added test cases to the > postgres_fdw regression test. Attached is an updated version of the > patch. > Hi. The patch looks good to me and seems to work as expected. -- Best regards, Alexander Pyhalov, Postgres Professional