On 5/15/08, Tom Lane <[EMAIL PROTECTED]> wrote:
> "Marko Kreen" <[EMAIL PROTECTED]> writes:
> > Eg. how does src/backend/parser/gram.c not leak memory on syntax error?
>
> It's not a leak because the memory can be re-used during the next
>  command.

I may be blind, but I don't see any static variables there.

>  I believe you'll find that trying to make it use palloc is a failure
>  because it keeps static pointers that it expects will stay valid across
>  calls.

Thats true, I need to drop the redefines if the allocations may be reused.

-- 
marko

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to