Re: Quere keep using temporary files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Quere keep using temporary files
Дата
Msg-id 28142.1572024818@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Quere keep using temporary files  (rihad <rihad@mail.ru>)
Список pgsql-general
rihad <rihad@mail.ru> writes:
> On 10/25/2019 05:49 PM, Tom Lane wrote:
>> You'd need to provide a lot more detail about what that query is doing
>> for anyone to be able to guess where the temp file usage is coming from.

> I just checked and saw that the function "foo_xml_v2" above returns 
> table. Is this enough to trigger temporary file usage regardless of 
> work_mem?

No --- that would result in creation of a tuplestore to hold the function
result, but it shouldn't spill to disk until it exceeds work_mem ...
or at least so I'd expect.  Can you extract a self-contained case that
creates a small temp file?

            regards, tom lane



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

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: Trying to fetch records only if preceded by at least another one
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Composite type storage overhead