Re: describe objects, as in pg_depend

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: describe objects, as in pg_depend
Дата
Msg-id 5683.1290108034@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: describe objects, as in pg_depend  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I just noticed that this is leaking a bit of memory, because we call
> getObjectDescription (which pallocs its result) and then
> cstring_to_text which pallocs a copy.  This is not a lot and it's not
> going to live much anyway, is it worrying about?

No.  The extra string will go away at the end of the tuple cycle.
I don't think it's a particularly good idea for this code to assume
that getObjectDescription's result is freeable, anyway.
        regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: final patch - plpgsql: for-in-array
Следующее
От: Tom Lane
Дата:
Сообщение: Re: describe objects, as in pg_depend