Memory deallocation after calling cast function

Поиск
Список
Период
Сортировка
От Soroosh Sardari
Тема Memory deallocation after calling cast function
Дата
Msg-id CAFUsPDZQLHKetjY2iG0MZK9R2oK72xcYVpARWoxc49Z6jLUgBQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Memory deallocation after calling cast function
Список pgsql-hackers
Hi

I have problem with memory deallocation. look at the following queries

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

2- create table test02(a) as select generate_series(1,100000000) ;

In execution of first query, memory usage increase rapidly until the transaction comes to end and deallocate all the memory which allocated with palloc.
I have wondered why all the memory deallocated at the end, so the cast is removed and query executed again. memory usage was not the same. It was grow very slow.

I need help to find the right point to deallocate the memory,
Any idea will be appreciated.

Soroosh Sardari

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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: 9.4 release notes
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_stat directory and pg_stat_statements