Re: CTE materializing sets?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: CTE materializing sets?
Дата
Msg-id 5073F2FA.5020708@ringerc.id.au
обсуждение исходный текст
Ответ на CTE materializing sets?  (Liam Caffrey <liam.caffrey@gmail.com>)
Ответы Re: CTE materializing sets?  (Serge Fonville <serge.fonville@gmail.com>)
Re: CTE materializing sets?  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-general
On 10/06/2012 08:45 AM, Liam Caffrey wrote:
> Hi,
>
> If I run a CTE does that materialize the resulting data in the same (or
> a similar) way as if I created a temp table and referred to that
> instead? Or does the CTE keep the set in memory?

Really good question, I too would be interested in this.

I'd expect it'd materialize to RAM if the result is within `work_mem`
but I'd love to know for sure.

--
Craig Ringer



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

Предыдущее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: Creating and managing triggers
Следующее
От: Serge Fonville
Дата:
Сообщение: Re: CTE materializing sets?