Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcgBy-001QOh-8n for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Feb 2024 06:34:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rcgBv-0033di-Ky for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Feb 2024 06:34:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcgBv-0033dF-6S for pgsql-hackers@lists.postgresql.org; Wed, 21 Feb 2024 06:34:51 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcgBo-0007s4-5w for pgsql-hackers@postgresql.org; Wed, 21 Feb 2024 06:34:50 +0000 Received: from [172.30.0.166] (unknown [172.30.0.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: a.lepikhov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 53C84E20E90; Wed, 21 Feb 2024 09:34:41 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1708497283; bh=sEObaEtVmJqvIXpF/8Yxx5yPSCY2iHi+x0O1/ruFY3g=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=ClYMG90O28rl4XNDWfjO2a4u0N1O0chT/bjBoBPvHNmI6LXuwZDQ6XbbfYprEzOcm G7oraizBXvuGmkMkV8ztSxyStZ3xb61M73C3eeCnN7si/TYodsBZRnOeo2/MF4VtBY gUVdwAhp5YxXk/u+ggqxLaU2BHtMJKj20AlRO1gacZHyEGX0V4ow/yxl38EmbNFdDJ 4+njzDjrQscAVJ1qBiJfOcNc9U5T3HitHVV323pY2d72c5qzkIojHTQ6k5FX/sF2Ne DsTBz/C4x52FDtbYKR1i/g2zxkiCJES6dphbfVZzf64fa5BWYhOH+vAKNDLfRYXhx4 16fx9ptzoEtlg== Message-ID: Date: Wed, 21 Feb 2024 13:34:37 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unlinking Parallel Hash Join inner batch files sooner Content-Language: en-US To: Thomas Munro Cc: Heikki Linnakangas , Jehan-Guillaume de Rorthais , John Naylor , pgsql-hackers References: <20230510230031.4d710fd1@karst> <871e80d4-e8cf-a117-ceb2-141586a3bcd2@iki.fi> From: Andrei Lepikhov Organization: Postgres Professional In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I see in [1] that the reporter mentioned a delay between the error message in parallel HashJoin and the return control back from PSQL. Your patch might reduce this delay. Also, I have the same complaint from users who processed gigabytes of data in parallel HashJoin. Presumably, they also stuck into the unlink of tons of temporary files. So, are you going to do something with this code? [1] https://www.postgresql.org/message-id/18349-83d33dd3d0c855c3%40postgresql.org -- regards, Andrei Lepikhov Postgres Professional