Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLZAu-0004wz-0t for pgsql-committers@arkaria.postgresql.org; Sun, 03 Dec 2017 18:39:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLZAs-0007M1-Sw for pgsql-committers@arkaria.postgresql.org; Sun, 03 Dec 2017 18:39:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLZAs-0007Lp-O6 for pgsql-committers@lists.postgresql.org; Sun, 03 Dec 2017 18:39:34 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLZAq-0004j0-4L for pgsql-committers@postgresql.org; Sun, 03 Dec 2017 18:39:34 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F3B202097C; Sun, 3 Dec 2017 13:39:29 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 03 Dec 2017 13:39:30 -0500 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; s=fm1; bh=nfLLfeIEyiIo0+xwEY/4y3988Fdsf cgS/3G8036Zl8U=; b=hF8MgdZ6zEpsclJe7Uvnu5xhKXI6bDS9iHdWSwfemwJAJ A+RyXQDJWGT1Fsgw/GLhwY4NijMzYluOacktQA2IEvnLrZIAj3g6eK7SCj7u873C 9p2gPF8qEnGhIm+UEmpErW553bNhM1RGlu0EKet8PunezlDd9QxlgY7YZhYusbUK Oxw9cbQqpYxbuNNzKLcOfLyK3XfNgKz/0ddMsa2ywtAXwVPuw8SCxPG5GgnREAVq J5doZgYXliNkZyKz5ylbJ1bj5rcWdu+wB+2B/qHQlVywdRIniqubQfmWG2hBGS8U IFec6fx/tG28TN/XlEnQ2fcd0Z/n8c+1bajFHsM6g== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 940FC24580; Sun, 3 Dec 2017 13:39:29 -0500 (EST) Date: Sun, 3 Dec 2017 10:39:28 -0800 From: Andres Freund To: Thomas Munro Cc: Tom Lane , pgsql-committers Subject: Re: pgsql: Add some regression tests that exercise hash join code. Message-ID: <20171203183928.pbfygs26kyhroo2r@alap3.anarazel.de> References: <84690.1512011601@sss.pgh.pa.us> <20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-11-30 08:06:44 -0800, Andres Freund wrote: > Hi, > > On 2017-11-30 23:53:55 +1300, Thomas Munro wrote: > > On Thu, Nov 30, 2017 at 4:47 PM, Thomas Munro > > wrote: > > > On Thu, Nov 30, 2017 at 4:13 PM, Tom Lane wrote: > > >> Andres Freund writes: > > >>> Add some regression tests that exercise hash join code. > > >> > > >> At least one buildfarm member doesn't like this ... > > > > > > $$); > > > initially_multibatch | increased_batches > > > ----------------------+------------------- > > > ! t | f > > > (1 row) > > > > > > rollback to settings; > > > --- 6002,6008 ---- > > > $$); > > > initially_multibatch | increased_batches > > > ----------------------+------------------- > > > ! | > > > (1 row) > > > > > > Hmm. aholehole didn't give me the hash join EXPLAIN ANALYZE output. > > > All other animals are fine so far. Gah. My guess is that this is the > > > following unlikely sequence: > > > > > > 1. Worker launched. > > > 2. Leader descheduled. > > > 3. Worker runs whole join. > > > 4. Leader awakes from slumber, begins running plan and tries to scan > > > outer relation, sees EOF, takes empty-outer optimisation and skips > > > building hash table. > > > 5. Explain has no data. > > > > > > It's arguably a bug that EXPLAIN ANALYZE can fail to give you what you > > > asked for because of details of timing and I have a patch in > > > development to fix that but it's not yet baked. Hmm. Wondering if > > > there is a quick way to avoid that case in the meantime... > > > > A couple more have failed in the same way. If my theory above is > > correct, the attached should fix the problem by skipping the affected > > bits of the test for now. Once we fix EXPLAIN so that it reliably > > prints hash table info no matter what (for which I should have a patch > > fairly soon), we can uncomment them again. Is that an acceptable > > solution for now? BTW this commit tipped nodeHash.c from yellow to > > green on coverage.postgresql.org :-) > > At the current rate of failure I'm slightly inclined to just leave the > occasionally failing test, which sounds like an actual bug imo, in place > till we have the fix. But if there's any pushback I'll go with your > disablign patch till then. Thomas, any updates on the status of that explain fix? Greetings, Andres Freund