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 1ngtwG-0003Px-F8 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 19:55:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngtwD-0007qE-EP for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 19:55:01 +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 1ngtwD-0007fl-2H for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 19:55:01 +0000 Received: from sender4-op-o10.zoho.com ([136.143.188.10]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngtwA-0000Mk-Ie for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 19:54:59 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1650398093; cv=none; d=zohomail.com; s=zohoarc; b=QjjgYfb8r/6k9AMsJjL/sHNXkacCJeilKRFDn4ropJ9VpVw+jWw4JIFUBez+BSaa16+lDR12vPxG8AxCcDvtT6xZKuONq6/nDIcjNpT3d9feJq4sllaNiMbtcyi16D7M/CF7PqzF/yClH9Sy3pTKOlWXJcpN0mu9pukXkktvrYY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650398093; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=YVjqsNQC0YISJrCcQEzj8MVwBngieu4FeXc9qB+7KHM=; b=eus4NODzSpj27mBEvcshI+kST1O5DmPi1WHeQ/01cnfykVd2uIyglN6YfTRnIt40M3ll6/jA4ibkZ8gYuF5lEI7BxWOeS5KP+WOo3s02Rlz7ZJdBL9dcc+WIdvx+3nPy0Ck4J1npTY4QYNqnAVvvqZ+JLNg3XOPrb5ong8h+bvE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=highgo.ca; spf=pass smtp.mailfrom=david.zhang@highgo.ca; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1650398093; s=zoho; d=highgo.ca; i=david.zhang@highgo.ca; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=YVjqsNQC0YISJrCcQEzj8MVwBngieu4FeXc9qB+7KHM=; b=M2rlAb7/vkLLIM1fA4v9RSkl/oWIoyh90X5w57nLSHk119WmqSOBMrbROlRuxlLm SATvbvBRRALQlJkkI9Fvy5wbXpfjgB93C+yLINVqVwb+o3t+ibpVGwHX8+3yaE3oeDu pIRSyyveUxoeGsxJlXi6LZH8iE94dGIOpK2wtErA= Received: from [192.168.1.72] (d64-180-13-33.bchsia.telus.net [64.180.13.33]) by mx.zohomail.com with SMTPS id 1650398090851596.6890394955681; Tue, 19 Apr 2022 12:54:50 -0700 (PDT) Message-ID: Date: Tue, 19 Apr 2022 12:54:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: postgres_fdw: commit remote (sub)transactions in parallel during pre-commit Content-Language: en-US To: Etsuro Fujita , Fujii Masao Cc: PostgreSQL Hackers References: <3e57ebd7-b536-333e-c877-49a3ebb57079@oss.nttdata.com> <2a2519b5-0c1f-87c8-5461-a4d8be0728e0@oss.nttdata.com> <883589bb-077f-7d66-2406-5f67be0372a6@oss.nttdata.com> From: David Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I tried to apply the patch to master and plan to run some tests, but got below errors due to other commits. $ git apply --check v7-0003-postgres-fdw-Add-support-for-parallel-abort.patch error: patch failed: doc/src/sgml/postgres-fdw.sgml:479 error: doc/src/sgml/postgres-fdw.sgml: patch does not apply +     * remote server in parallel at (sub)transaction end. Here, I think the comment above could potentially apply to multiple remote server(s). Not sure if there is a way to avoid repeated comments? For example, the same comment below appears in two places (line 231 and line 296). +    /* +     * If requested, consume whatever data is available from the socket. +     * (Note that if all data is available, this allows +     * pgfdw_get_cleanup_result to call PQgetResult without forcing the +     * overhead of WaitLatchOrSocket, which would be large compared to the +     * overhead of PQconsumeInput.) +     */ On 2022-03-24 11:46 p.m., Etsuro Fujita wrote: > On Thu, Mar 24, 2022 at 1:34 PM Etsuro Fujita wrote: >> Attached is a new patch set. The new version of 0002 is just a >> cleanup patch (see the commit message in 0002), and I think it's >> committable, so I'm planning to commit it, if no objections. > Done. > > Attached is the 0003 patch, which is the same as the one I sent yesterday. > > Best regards, > Etsuro Fujita -- Best regards, David Software Engineer Highgo Software Inc. (Canada) www.highgo.ca