Обсуждение: temp tables

Поиск
Список
Период
Сортировка

temp tables

От
James Mansion
Дата:
Do CREATE TEMP TABLE table have any special treatment regarding eliding
sync operations
or deferring creation of disk files in the case where memory pressure
does not require a spill?

James


Re: temp tables

От
Tom Lane
Дата:
James Mansion <james@mansionfamily.plus.com> writes:
> Do CREATE TEMP TABLE table have any special treatment regarding eliding
> sync operations

Yes; neither fsync nor WAL-writing is done for temp tables.

> or deferring creation of disk files in the case where memory pressure
> does not require a spill?

No.  The trouble with doing something like that is we might be forced to
report an out-of-disk-space failure at some quite unintuitive point,
like during a SELECT.

            regards, tom lane