Re: temporary data after diskspace error

From: Willy-Bas Loos <willybas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: temporary data after diskspace error
Date: 2020-01-28 09:04:46
Message-ID: CAHnozTjnd+W5nDsbVeY=EtiuM_J6W1bVSNgU4sEEcc_K-CKDfQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I did the restart and it took seconds.
This was on a SSD.
BTW on ubuntu and debian i never use pg_ctl directly, postgresql-common has
a very nice CLI for this.
For the restart i used: sudo pg_ctlcluster --force 9.4 main restart

Thanks for all the good advice!

On Mon, Jan 27, 2020 at 10:15 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Willy-Bas Loos <willybas(at)gmail(dot)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
>

--
Willy-Bas Loos

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Schwan 2020-01-28 10:02:10 Load Peaks on Standby/Replication Server using Luks/dmcrypt
Previous Message Peter J. Holzer 2020-01-27 22:46:16 Re: Need support on tuning at the time of index creation