Re: Memory deallocation after calling cast function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory deallocation after calling cast function
Дата
Msg-id 21238.1401825585@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Memory deallocation after calling cast function  (Soroosh Sardari <soroosh.sardari@gmail.com>)
Ответы Re: Memory deallocation after calling cast function
Список pgsql-hackers
Soroosh Sardari <soroosh.sardari@gmail.com> writes:
> I have problem with memory deallocation. look at the following queries

> 1- create table test01(a) as select generate_series(1,100000000)::int8 ;

Do it as, eg,

create table test01(a) as select g::int8 from generate_series(1,100000000) g;

SRFs in the SELECT targetlist tend to leak memory; this is not easily
fixable, and nobody is likely to try hard considering the feature's on
the edge of deprecation anyhow.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)