pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Willy-Bas Loos <willybas@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: temporary data after diskspace error
Date: Mon, 27 Jan 2020 16:15:03 -0500
Message-ID: <20278.1580159703@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHnozTjyEodb+gu3joijHR15uCsW+x9fgHGYTxkn_heYPOzJhw@mail.gmail.com>
References: <CAHnozThPqqeT4ECoYFy0iFyk1oZgkQBYr3S=w2C8h3rdXwm05g@mail.gmail.com>
	<9650.1580141724@sss.pgh.pa.us>
	<CAHnozTjyEodb+gu3joijHR15uCsW+x9fgHGYTxkn_heYPOzJhw@mail.gmail.com>

Willy-Bas Loos <willybas@gmail.com> 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





view thread (7+ messages)  latest in thread

Message-ID: <20278.1580159703@sss.pgh.pa.us>
Permalink:  ../20278.1580159703@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20278.1580159703@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, willybas@gmail.com
  Subject: Re: temporary data after diskspace error
  In-Reply-To: <20278.1580159703@sss.pgh.pa.us>
  References: <CAHnozThPqqeT4ECoYFy0iFyk1oZgkQBYr3S=w2C8h3rdXwm05g@mail.gmail.com> <9650.1580141724@sss.pgh.pa.us> <CAHnozTjyEodb+gu3joijHR15uCsW+x9fgHGYTxkn_heYPOzJhw@mail.gmail.com> <20278.1580159703@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox