strong memory leak in plpgsql from handled rollback and lazy cast

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема strong memory leak in plpgsql from handled rollback and lazy cast
Дата
Msg-id CAFj8pRDmap0kBSKC_bW+Q7eZo46+SP08wC1rYJjHWaiVpo_5rg@mail.gmail.com
обсуждение исходный текст
Ответы Re: strong memory leak in plpgsql from handled rollback and lazy cast  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi

When I tested some hypothesis I wrote buggy code. It was surprise how fast I lost all free memory

do $$                  
begin
  for i in 1..3000000
  loop
    begin
      -- do some error
      if i then end if;
    exception when others then
      -- do nothing
    end;
  end loop;
end;
$$;

problem is somewhere in implicit casting inside IF statement. When I use explicit casting -

  IF i::boolean THEN

then there is not memory leak.

Regards

Pavel

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

Предыдущее
От: Anastasia Lubennikova
Дата:
Сообщение: Re: [HACKERS] [WIP] Effective storage of duplicates in B-tree index.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: block-level incremental backup