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 1lN54U-0006nB-CD for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 02:41:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lN54T-0006YT-2p for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 02:41:05 +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 1lN54S-0006Y8-O2 for pgsql-hackers@lists.postgresql.org; Fri, 19 Mar 2021 02:41:04 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lN54O-0007NR-RT for pgsql-hackers@lists.postgresql.org; Fri, 19 Mar 2021 02:41:04 +0000 Received: by mail-ej1-x635.google.com with SMTP id k10so7221837ejg.0 for ; Thu, 18 Mar 2021 19:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EJuxJ6rEb+IEbZA1RvbUPUJ1IWTBixMT/B0nsPfoAys=; b=dDV+dCT44/PyoCI02961CTO98UZu6vE53qvccp9E87vPJA6IDL4lD87wJXZsixwrIu t2fvGjG0IeMd/bWR7wrDgQtnr344S3XQlgOtJl46f7/jKApVMYLTbla81QAjRia8gpAb BuzmCXbzfklcQVnueP5ICbNTbq9+QCafVHyR2ppQ4qA9Pk+EeQUnaJJxAFaQJcagUoSV ioQxqrr7wRSSZUTVhnVKpyvz+nmFfgyQfZpcqL6ig/B+q3Sa9fI41e7hc3HH1a2wAZZi 7rnEaaadhx/riw5S4KlLNmYgZpH/eG0bhALbpXMNCJ19e7phanwskjc3OvU6ylB+r2jp Ch+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EJuxJ6rEb+IEbZA1RvbUPUJ1IWTBixMT/B0nsPfoAys=; b=juyXI4IVMbXR8tkqol49YZ+ZYpu6E+CL75AaoDPwQY4aiNYTNf0qiqyZzRcSdyvDCB Xs6acVcjbW8Rvzj0YY8ABhhaVxN6lprUx3EiDy51VGBXK5hWOBI4jW6XnWO1FJ7kRGN6 myDbY//LRs4cwRzXbWVEWTzmJEDgq58iF4skNzQ4lyjjwqPv/UakWW0sA12ImZpA2Cqr 0OWJGEEcQhuI35kuMoFqHG53EX0hj4xteiSSyTzCH+EsY6uMKIzH4+dsBERjigS+Q0fq GhQl/BhLVPSAf3n2r2DhDz1wMKydMNj17of5kpz0cAwS/G5faOHYoI/UC3n0UtfFDskL 0KBw== X-Gm-Message-State: AOAM533VG06wH/Id8QkmfXBcCagenEzULJV4a5Md1fCS4Ls3KiZ9CV2B 2cpKw6IWy8Q/1hjNxb7f0t+4kBeU5Esr/yTSz4WoDFmGkb1roHgsXpvmmB8P6xPxZXG0gvboZCP GlmPasZ5Mkug2u3eKxjLlMaamG7+jVn6IQ68GIFuoWK6+J2lAQpaI8MZAOF49bWqhlbWcVK48Ah RyYdxhlikmiJ9oYK9l5BnqWNPmFP6+WiU1SBKn4NIiT08dJ632cOBF X-Google-Smtp-Source: ABdhPJyGoVeAYd2ODg8SQtLNADPc82ZyMLYdgfjvbuodiO0wwbfjQTPW3C8pw6kcIDnQAxkYHxRd3A== X-Received: by 2002:a17:906:9be1:: with SMTP id de33mr1925063ejc.320.1616121659636; Thu, 18 Mar 2021 19:40:59 -0700 (PDT) Received: from [10.137.0.20] (ip-86-49-253-127.net.upcbroadband.cz. [86.49.253.127]) by smtp.gmail.com with ESMTPSA id t6sm3168350edq.48.2021.03.18.19.40.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Mar 2021 19:40:59 -0700 (PDT) Subject: Re: cleanup temporary files after crash To: Euler Taveira , Thomas Munro , Michael Paquier Cc: Euler Taveira , Anastasia Lubennikova , Tomas Vondra , PostgreSQL Hackers , Tom Lane References: <1982ee3c-54c3-280a-806a-fd28ad8f19e6@postgrespro.ru> <363cb85c-3a03-9a49-b830-8b645c1241d9@enterprisedb.com> <4245d284-97b2-4056-96c2-455792d9b564@www.fastmail.com> <8740f056-a7c0-ff12-0a50-de5324a928ee@enterprisedb.com> <822e3a60-56a1-219d-c473-365751c3e108@enterprisedb.com> <54663718-1d87-46f2-a27b-e7edacbfae0d@www.fastmail.com> <1ec33f3d-ea4c-28c8-502c-3eb0a008a6ac@enterprisedb.com> <34226249-c5ba-4780-a1bb-f3433d19716e@www.fastmail.com> <05d307fc-8391-4091-b279-1b3214658f10@www.fastmail.com> <049a2752-fc99-194d-31b2-b15ffa914cd4@enterprisedb.com> <482a6498-7713-e937-c554-7d235c415fba@enterprisedb.com> From: Tomas Vondra Message-ID: <112f0847-a71a-eec2-e561-2d39dc26127a@enterprisedb.com> Date: Fri, 19 Mar 2021 03:40:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <482a6498-7713-e937-c554-7d235c415fba@enterprisedb.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/19/21 2:21 AM, Tomas Vondra wrote: > On 3/19/21 1:54 AM, Euler Taveira wrote: >> On Thu, Mar 18, 2021, at 8:34 PM, Tomas Vondra wrote: >>> Well, that's better, bit it still does not do the trick on the 32-bit >>> machine - in that case a 1000 rows with int4 still fit into work_mem, so >>> the temp file is not created. Per my experiments about 1040 rows are >>> needed - soooo close ;-) So let's make it 2000. >> My 32-bit laptop needs some repairs so I blindly chose 1k rows. >> > > Yeah, it's not immediately obvious how many rows are needed. 2000 would > be enough, but I just bumped it up to 5000 for good measure. > >>> We might as well check that the temp file actually exists, before >>> killing the backend. Just to be sure. >> Do you mean with remove_temp_files_after_crash = on? New version attached. >> > > On second thought, we don't need that check. I realized the second part > of the test (checking remove_temp_files_after_crash=off) actually does > verify that we've created the file, so that should be OK. > > I've pushed the previous version with the 5000 rows. Let's see what > crake and florican think about this ... > So crake and florican seem to be happy now. Not sure about lapwing yet. But interestingly enough, prion and curculio got unhappy. They worked fine with the older test, but now it fails with the "no such file or directory" message. I wonder what makes them different from the other x86_64 machines ... regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company