Re: BUG #14403: Large numbers of CREATE OR UPDATE function causes memory exhaustion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #14403: Large numbers of CREATE OR UPDATE function causes memory exhaustion
Дата
Msg-id 7727.1477679674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #14403: Large numbers of CREATE OR UPDATE function causes memory exhaustion  (will.pearson@digital.cabinet-office.gov.uk)
Ответы Re: BUG #14403: Large numbers of CREATE OR UPDATE function causes memory exhaustion  (Will Pearson <will.pearson@digital.cabinet-office.gov.uk>)
Список pgsql-bugs
will.pearson@digital.cabinet-office.gov.uk writes:
> [ lots-n-lots-of CREATE FUNCTION/execute function/DROP FUNCTION eat memory ]

I think probably what's going on here is that plpgsql is creating cache
entries for these functions on first execution, and not reclaiming them
before end of session.

I'm not terribly excited about adding overhead to make it keep track of
DROP FUNCTION operations, because this coding style seems less than great
anyway.  Have you considered using DO blocks instead of short-lived
functions?

            regards, tom lane

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

Предыдущее
От: will.pearson@digital.cabinet-office.gov.uk
Дата:
Сообщение: BUG #14403: Large numbers of CREATE OR UPDATE function causes memory exhaustion
Следующее
От: clinton.adams@gmail.com
Дата:
Сообщение: BUG #14404: High row estimates when query uses master inherited tables