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 1iw72w-0001hu-LC for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 16:15:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iw72v-000694-Bw for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 16:15:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iw72u-00068t-Uq for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 16:15:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iw72s-0007Dx-GG for pgsql-general@postgresql.org; Mon, 27 Jan 2020 16:15:27 +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 00RGFO9Y009651; Mon, 27 Jan 2020 11:15:25 -0500 From: Tom Lane To: Willy-Bas Loos cc: "pgsql-general@postgresql.org" Subject: Re: temporary data after diskspace error In-reply-to: References: Comments: In-reply-to Willy-Bas Loos message dated "Mon, 27 Jan 2020 17:05:47 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9649.1580141724.1@sss.pgh.pa.us> Date: Mon, 27 Jan 2020 11:15:24 -0500 Message-ID: <9650.1580141724@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Willy-Bas Loos writes: > And also: How can i make postgres clean up the files? > Can it be done without restarting the cluster? > Will restarting it help? A restart will clean out temp files. I don't think there's any terribly safe way to do it without that. You could manually remove such files that haven't been accessed recently, but the risk of human error is high. regards, tom lane