Re: BUG #18909: Query creates millions of temporary files and stalls

Поиск
Список
Период
Сортировка
От Sergey Koposov
Тема Re: BUG #18909: Query creates millions of temporary files and stalls
Дата
Msg-id 59090d89e656fde93b539e95a23a740d532d4f88.camel@ed.ac.uk
обсуждение исходный текст
Ответ на Re: BUG #18909: Query creates millions of temporary files and stalls  (Andrei Lepikhov <lepihov@gmail.com>)
Список pgsql-bugs
Thanks,

I don't have a strong opinion on how this is fixed, but I personally think that
is a bug that needs addressing in back branches.

I think I remember hitting OOMs in similar situations with hashjoins in the past
and I just disabled them.

But I'd certainly argue the situation here is more severe with 12 million temp files (possibly more).
Even the cancelling of the query doesn't quite work well,
because the deletion of temp files is not fast enough in the cancellation.
Only the restarting of the server does delete tmp files fast enough (takes a few min still).
And apparently even ls can't quite deal with 12 millions files in a folder.

  Sergey


The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e
buidheanncarthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
 

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