Re: Disk filled-up issue after a lot of inserts and drop schema

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disk filled-up issue after a lot of inserts and drop schema
Дата
Msg-id 28460.1473864279@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Disk filled-up issue after a lot of inserts and drop schema  (Rick Otten <rottenwindfish@gmail.com>)
Ответы Re: Disk filled-up issue after a lot of inserts and drop schema  (Pietro Pugni <pietro.pugni@gmail.com>)
Список pgsql-performance
Rick Otten <rottenwindfish@gmail.com> writes:
> I don't know why something still has an open file descriptor on something
> you believe has been removed, but at least that explains why you are
> experiencing the discrepancy between "du" and the real available space on
> the disk.

Yeah, the reported behavior clearly indicates that some PG process is
holding open files that should have been dropped (and were unlinked).
That's a bug, but there's not enough info here to find and fix it.

If we're really lucky, this is the same bug that Andres found and fixed
last week:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=26ce63ce76f91eac7570fcb893321ed0233d62ff

but that guess is probably too optimistic, especially if it's a background
process (such as the checkpointer process) that is holding the open files.

If you can reproduce this, which I'm guessing you can, please use
"lsof" or similar tool to see which Postgres process is holding open
references to lots of no-longer-there files.

            regards, tom lane


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

Предыдущее
От: Rick Otten
Дата:
Сообщение: Re: Disk filled-up issue after a lot of inserts and drop schema
Следующее
От: Pietro Pugni
Дата:
Сообщение: Re: Disk filled-up issue after a lot of inserts and drop schema