Re: describe objects, as in pg_depend - Mailing list pgsql-hackers

From Tom Lane
Subject Re: describe objects, as in pg_depend
Date
Msg-id 5683.1290108034@sss.pgh.pa.us
Whole thread Raw
In response to Re: describe objects, as in pg_depend  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: final patch - plpgsql: for-in-array
Next
From: Tom Lane
Date:
Subject: Re: describe objects, as in pg_depend