Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ert3X-0006Gv-4t for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Mar 2018 22:21:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ert3V-0008UA-Bw for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Mar 2018 22:21:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ert3V-0008U0-1l for pgsql-hackers@lists.postgresql.org; Fri, 02 Mar 2018 22:21:33 +0000 Received: from www3.webmail.pair.com ([66.39.3.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ert3S-0005SN-CF for pgsql-hackers@postgresql.org; Fri, 02 Mar 2018 22:21:31 +0000 Received: by www3.webmail.pair.com (Postfix, from userid 65534) id 2D7813E00AC; Fri, 2 Mar 2018 17:21:28 -0500 (EST) Received: from 78.35.63.235 ([78.35.63.235]) (SquirrelMail authenticated user te_123@bloodgate.com) by sm.webmail.pair.com with HTTP; Fri, 2 Mar 2018 17:21:28 -0500 Message-ID: In-Reply-To: References: <20180110000934.lft7ebeqek4grrlx@alap3.anarazel.de> <20180207184137.5mv4bipj3t7hbncv@alap3.anarazel.de> <20180227210638.caug5j5po4xk5ktf@alap3.anarazel.de> Date: Fri, 2 Mar 2018 17:21:28 -0500 Subject: Re: [HACKERS] [POC] Faster processing at Gather node From: "Tels" To: "Robert Haas" Cc: "Andres Freund" , "Amit Kapila" , "Rafia Sabih" , "PostgreSQL Developers" User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Robert, On Fri, March 2, 2018 12:22 pm, Robert Haas wrote: > On Wed, Feb 28, 2018 at 10:06 AM, Robert Haas > wrote: >> [ latest patches ] > > Committed. Thanks for the review. Cool :) There is a typo, tho: + /* + * If the counterpary is known to have attached, we can read mq_receiver + * without acquiring the spinlock and assume it isn't NULL. Otherwise, + * more caution is needed. + */ s/counterpary/counterparty/; Sorry, only noticed while re-reading the thread. Also, either a double space is missing, or one is too many: + /* + * Separate prior reads of mq_ring from the increment of mq_bytes_read + * which follows. Pairs with the full barrier in shm_mq_send_bytes(). We + * only need a read barrier here because the increment of mq_bytes_read is + * actually a read followed by a dependent write. + */ (" Pairs ..." vs. ". We only ...") Best regards, Tels