Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwBj0-0006lR-Os for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 21:15:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwBiy-0001H6-Hc for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 21:15:12 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwBiy-0001Gt-7r for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 21:15:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwBiu-0004kC-H2 for pgsql-general@postgresql.org; Mon, 27 Jan 2020 21:15:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00RLF3gE020281; Mon, 27 Jan 2020 16:15:04 -0500 From: Tom Lane To: Willy-Bas Loos cc: pgsql-general@postgresql.org Subject: Re: temporary data after diskspace error In-reply-to: References: <9650.1580141724@sss.pgh.pa.us> Comments: In-reply-to Willy-Bas Loos message dated "Mon, 27 Jan 2020 20:11:13 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20277.1580159703.1@sss.pgh.pa.us> Date: Mon, 27 Jan 2020 16:15:03 -0500 Message-ID: <20278.1580159703@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Willy-Bas Loos writes: > Will there be a lot of downtime to delete those 90GB of temp files? > Will postgres just delete those files without processing them or should I > brace for some downtime? It's just a directory scan and an unlink() for each file that has the right filename pattern to be a temp file. If you've got a reasonable filesystem I wouldn't expect it to take long. Maybe a minute? (but don't quote me on that) regards, tom lane