Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu8lc-0001xF-OJ for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 02:27:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cu8lc-0006JD-6a for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 02:27:52 +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.84_2) (envelope-from ) id 1cu8k7-0003Xd-Sw for pgsql-hackers@postgresql.org; Sat, 01 Apr 2017 02:26:20 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cu8k5-0006d3-97; Sat, 01 Apr 2017 02:26:18 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id ABD7120756; Fri, 31 Mar 2017 22:26:16 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 31 Mar 2017 22:26:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Gd5IptYRVGSR6JnmwE vq9yR6ySsj8g65dERjVcfNH4A=; b=NAYqQksV0B13x0bxKOHj0KXBuE72bd9/cp nXLZJTlZrioWmFZTPWbhKbZqwZ7GDOL86VvCvrQaBlk/1Pu2YscEuN28vs2yk5aV RB+nWxFENVorPQls1DdxM3UUjn1v4S7qjqvSjqydbpBjLJ+PQmsshuSW3cIdBq0M WFtI4KTvRMHiCoke9s1TkFBW7peb8FlYNm/HwSNkpTrFaaloQwdPm9b6XSu/otjx GkK8lg6L/BXHKGieJw1VIb7Wtzk7jroA1xdry4StDbTXQlA7Jhy5eYRBSnBE4mAI LaPjFOY31HHuW2x5yjo0gRg2u4Fcd7i8O2bOkhmqIV/yCidu+EHg== X-ME-Sender: X-Sasl-enc: AvRzWal7lZbcFvPZlL/BuaySAZgEXCxKJ1/vYH9PUilB 1491013576 Received: from intern.anarazel.de (unknown [12.130.117.192]) by mail.messagingengine.com (Postfix) with ESMTPA id 079207E1DC; Fri, 31 Mar 2017 22:26:16 -0400 (EDT) Date: Fri, 31 Mar 2017 19:26:05 -0700 From: Andres Freund To: Robert Haas Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Avoid GatherMerge crash when there are no workers. Message-ID: <20170401022605.4wag26gtyzhny7ue@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On 2017-04-01 01:22:14 +0000, Robert Haas wrote: > Avoid GatherMerge crash when there are no workers. I think the gather merge code needs a bit more test coverage (sorry to make this a larger theme today). As shown by https://coverage.postgresql.org/src/backend/executor/nodeGatherMerge.c.gcov.html we don't actually merge anything (heap_compare_slots is not exercised). I btw also wonder if it's good that we have a nearly identical copy of heap_compare_slots and a bunch of the calling code in both nodeMergeAppend.c and nodeGatherMerge.c. On the other hand, it's not heavily envolving code. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers