Re: temporary data after diskspace error

Поиск
Список
Период
Сортировка
От Willy-Bas Loos
Тема Re: temporary data after diskspace error
Дата
Msg-id CAHnozTjnd+W5nDsbVeY=EtiuM_J6W1bVSNgU4sEEcc_K-CKDfQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: temporary data after diskspace error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@sss.pgh.pa.us> wrote:
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


--
Willy-Bas Loos

В списке pgsql-general по дате отправления:

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Need support on tuning at the time of index creation
Следующее
От: Dennis Schwan
Дата:
Сообщение: Load Peaks on Standby/Replication Server using Luks/dmcrypt