Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhNw2-0005Sb-54 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2017 22:34:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dhNw1-0008OQ-8M for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2017 22:34:09 +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 1dhNvz-0008M7-Ec for pgsql-hackers@postgresql.org; Mon, 14 Aug 2017 22:34:07 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dhNvs-0007so-Co for pgsql-hackers@postgresql.org; Mon, 14 Aug 2017 22:34:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6CBB820D31; Mon, 14 Aug 2017 18:33:59 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 14 Aug 2017 18:33:59 -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=N5bSuC5qtth5KqnkaE x+sPXIGld5GlUUBrPgORM1Vcs=; b=XHOK0NkCE6Qd39+IUWNS3FDmA4NBShHuxo KB3xj8qAakBrXkp9wOK6nqLZgglird1dg7WYIysKZ0drlM8uJXcrpFFZPuCaOXPZ XyR+YBdpuSMr47BY3W/hWama4+J4GOQhmnCiY1vPrg2+LhbZuTzQ5MBHETyW/a7o dShd8ujfUPjMFL/RsZmBkK7NfzpRBA8opnp3Rb9b66cMnotQt+V11rjgP4JYSaUO 0KgyNrS/u0R2XeWRicNqJNZDJ9mYiZT42h/JfbFvwXkKUAdBMkU3H9wq/XsiuPlW ZZfb90Qd7M1NjoVp54f8rzWgNchqdQv570iDQXBEz6RE4fXauDFw== X-ME-Sender: X-Sasl-enc: Zo+l/aUnFsk9epttaKqwQ0tgG00GT8FeMX9otZSC2kIM 1502750039 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A9F924442; Mon, 14 Aug 2017 18:33:59 -0400 (EDT) Date: Mon, 14 Aug 2017 15:33:57 -0700 From: Andres Freund To: Rushabh Lathia Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Avoid GatherMerge crash when there are no workers. Message-ID: <20170814223357.i45ghd3pkcvypacy@alap3.anarazel.de> References: <20170401022605.4wag26gtyzhny7ue@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-03 12:56:36 +0530, Rushabh Lathia wrote: > On my local environment I was getting coverage for the heap_compare_slots > with > existing test. But it seems like due to low number of record fetch only > leader get > evolved to the fetching tuples in the shared report. > > I modified the current test coverage for the Gather Merge to add more rows > to be > fetch by the GatherMerge node to make sure that it do coverage for > heap_compare_slots. Also added test for the zero worker. > > PFA patch as well as LCOV report for the nodeGatherMerge.c. Pushed, thanks! - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers