Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYUaa-0001iJ-ED for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 14:09:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYUaZ-0007jS-0A for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 14:09:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYUaY-0007jL-1H for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 14:09:22 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYUaU-0005Uk-SE for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 14:09:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id ED0E35C0121; Mon, 19 Apr 2021 10:09:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 19 Apr 2021 10:09:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=7JlXbe5O1O9aGZI1ioxXBwIePCtNcOWXxYJJyC3sEiU=; b=GYjZtqI2 QBOidiT4SoQQxOnuGgIBMmzDsTwZeid1NvuLOkQFQjx6AZ4t+HONIo7BFNcLnGcm dMXvq58ZU7kZ9huhPTTExEot/9PZpPOVv2Cx4IjIU/ldDJaYWrb4/Js8Qc/5CnYz 8HVTV2t4pnvamS9mgZgljeGpyfkGp9JVOpObpsFIJFsvB8dX7aom7aeVqTnQg0Se oYhLCF96p/+gnp7v28TYXGPIjU+AM9BPXmcqbv6qa5D5hqsH69/jrCfZmH0pNA9K 2S6j3RnxDQUIJGcQih1y5KyVSFfOtyY7M/LuBtsFhPOWtNGFfVvUqkxWP/hMuW1K gpAME9Z6pjBKAA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtgedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdludejmdenucfjughrpeffhffvuffkgggtugfgjggfsehtkeertddt redunecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrg hlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeeuueeiuddukeekveek ueeileelieduieekleffkefgveeuvdfgtddugefhheejleenucffohhmrghinhepphhosh htghhrrdgvshdpvghnthgvrhhprhhishgvuggsrdgtohhmnecukfhppeduledtrdelhedr udelrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 2DB26108005C; Mon, 19 Apr 2021 10:09:15 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5DA932A0C81; Mon, 19 Apr 2021 10:09:12 -0400 (-04) Date: Mon, 19 Apr 2021 10:09:12 -0400 From: Alvaro Herrera To: Reid Thompson Cc: "pgsql-general@lists.postgresql.org" Subject: Re: could not read from hash-join temporary file: SUCCESS && DB goes into recovery mode Message-ID: <20210419140912.GA28094@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Apr-19, Reid Thompson wrote: > Hi I'm looking for some guidance related to the subject line issue. > PostgreSQL 11.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit > 128GB RAM > pgsql_tmp is on a FS with 2+TB free This bug report looks familiar. I think it was fixed in the below commit and that you'd benefit from running an up-to-date version (11.11). Author: Thomas Munro Branch: master [7897e3bb9] 2020-06-16 16:59:07 +1200 Branch: REL_13_STABLE Release: REL_13_0 [3e0b08c40] 2020-06-16 17:00:06 +1200 Branch: REL_12_STABLE Release: REL_12_4 [28ee12669] 2020-06-16 17:00:21 +1200 Branch: REL_11_STABLE Release: REL_11_9 [9c14d6024] 2020-06-16 17:00:37 +1200 Branch: REL_10_STABLE Release: REL_10_14 [95647a1c7] 2020-06-16 17:00:53 +1200 Branch: REL9_6_STABLE Release: REL9_6_19 [02b71f06b] 2020-06-16 17:01:07 +1200 Branch: REL9_5_STABLE Release: REL9_5_23 [89020a92f] 2020-06-16 17:01:22 +1200 Fix buffile.c error handling. Convert buffile.c error handling to use ereport. This fixes cases where I/O errors were indistinguishable from EOF or not reported. Also remove "%m" from error messages where errno would be bogus. While we're modifying those strings, add block numbers and short read byte counts where appropriate. Back-patch to all supported releases. Reported-by: Amit Khandekar Reviewed-by: Melanie Plageman Reviewed-by: Alvaro Herrera Reviewed-by: Robert Haas Reviewed-by: Ibrar Ahmed Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com -- Álvaro Herrera 39°49'30"S 73°17'W EnterpriseDB https://www.enterprisedb.com