Re: [rfc,patch] PL/Proxy in core - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [rfc,patch] PL/Proxy in core
Date
Msg-id 4967.1210863988@sss.pgh.pa.us
Whole thread Raw
In response to Re: [rfc,patch] PL/Proxy in core  ("Marko Kreen" <markokr@gmail.com>)
Responses Re: [rfc,patch] PL/Proxy in core  ("Marko Kreen" <markokr@gmail.com>)
List pgsql-hackers
"Marko Kreen" <markokr@gmail.com> 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 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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: pgsql@mohawksoft.com
Date:
Subject: SSL and USER_CERT_FILE round 2
Next
From: "Marko Kreen"
Date:
Subject: Re: [rfc,patch] PL/Proxy in core