Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKRMS-0006uH-E3 for pgsql-committers@arkaria.postgresql.org; Thu, 30 Nov 2017 16:06:52 +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 1eKRMS-00073t-1k for pgsql-committers@arkaria.postgresql.org; Thu, 30 Nov 2017 16:06:52 +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 1eKRMR-00073j-Sz for pgsql-committers@lists.postgresql.org; Thu, 30 Nov 2017 16:06:51 +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 1eKRMO-0003XZ-Cz for pgsql-committers@postgresql.org; Thu, 30 Nov 2017 16:06:51 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 273D0206D1; Thu, 30 Nov 2017 11:06:46 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 30 Nov 2017 11:06:46 -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=U4vh/nsWniqh0wmINQGmxebJEyhRW 6YZWeaFXKzq7jI=; b=hp+llss6LK9V+xAEJVoVJ8KJuNMKjX5lAhgsuSiyzm02O HFwR59hXjR9BhzWINPJw4PhWDOSlZARxu3e3CF8blLKyYtd3bot3ekzlfkUccEkP /5/UdP+PSeYouDJw0BC8Te/Hraz/73IE94m2rVYHZ7PQPXOlDKHZoIDxfDT7VvaH Zo31XPzA1abj2zkBdUKTJf62NaYr5oBiO5o6NGsPdXEXe5BIPD1RsAPrClrsSmpC U13iqJyF3AMuMC1Wr6u8SuqRO+edWfnEpoGg3k+XEQxxAiUHaZ4lCvnPqvZPL7m8 xDj+FhvyjQmQw/K53r+SXN8pRU/pII91g0fCof5eg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id D803B24ED6; Thu, 30 Nov 2017 11:06:45 -0500 (EST) Date: Thu, 30 Nov 2017 08:06:44 -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: <20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de> References: <84690.1512011601@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. - Andres