Re: pl/python tracebacks - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: pl/python tracebacks
Date
Msg-id 1298551560.4783.2.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: pl/python tracebacks  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-hackers
On lör, 2011-02-12 at 02:00 -0700, Alex Hunsaker wrote:
> PyString_AsString is used all over the place without any pfrees. But I
> have no Idea how that pstrdup() is getting freed if at all.

pstrdup() like palloc() allocates memory from the current memory
context, which is freed automatically at some useful time, often at the
end of the query.  It is very common throughout the PostgreSQL code that
memory is not explicitly freed.  See src/backend/utils/mmgr/README for
more information.



pgsql-hackers by date:

Previous
From: Daniel Farina
Date:
Subject: Re: Sync Rep v17
Next
From: Tatsuo Ishii
Date:
Subject: Re: Invitation to Cluster Hackers meeting at pgCon