From: | Dylan Luong <Dylan(dot)Luong(at)unisa(dot)edu(dot)au> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
Cc: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | RE: clean out ./data/base/pgsql_tmp |
Date: | 2017-12-07 05:29:00 |
Message-ID: | f7d1781a62e7495090f1e9168e645d62@ITUPW-EXMBOX3B.UniNet.unisa.edu.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Since the temp files are easily identifiable as it has the PID in the fileaname.
Is it ok just manually deleting these files as the process has already being killed.
-----Original Message-----
From: Thomas Munro [mailto:thomas(dot)munro(at)enterprisedb(dot)com]
Sent: Thursday, 7 December 2017 2:56 PM
To: Dylan Luong <Dylan(dot)Luong(at)unisa(dot)edu(dot)au>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: clean out ./data/base/pgsql_tmp
On Thu, Dec 7, 2017 at 5:18 PM, Dylan Luong <Dylan(dot)Luong(at)unisa(dot)edu(dot)au> wrote:
> We have an issue where one of the developers ran a large query that
> hung was filling up the DATA drive very rapidly. From 50% usage to 95%
> in less than 2hrs.
>
> It created a very large pgsql_tmp size (300GB). To stop the drive
> filling up we had to kill the process manually using kill -9.
>
> How do we clean up the pgsql_tmp folder? Will Postgres periodically
> clean it? Ie CHECKPOINT?
Hi Dylan,
A clean shutdown/restart will clean it out. A crash restart (as happens if you kill processes like that) doesn't clear away pgsql_tmp data on the theory that it might be useful for forensics.
--
Thomas Munro
http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Eugene Poole | 2017-12-07 05:46:14 | Re: Migrating From CentOS-6 Oracle 11g R2 To CentOS-7 PostgreSQL ?? |
Previous Message | John R Pierce | 2017-12-07 05:02:13 | Re: Migrating From CentOS-6 Oracle 11g R2 To CentOS-7 PostgreSQL ?? |