Re: pl/python quoting functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: pl/python quoting functions
Date
Msg-id 1298475841.27343.1.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: pl/python quoting functions  (Jan Urbański <wulczer@wulczer.org>)
List pgsql-hackers
On ons, 2011-02-23 at 11:26 +0100, Jan Urbański wrote:
> One thing: you removed the conditional pfree from PLy_quote_ident,
> which makes this function leak memory if the actual quoting took
> place, no? Is that leak too small to worry about?

Many functions in PostgreSQL leak memory in this way.  It's not worth
worrying about, and certainly not worth violating a called function's
API for it.




pgsql-hackers by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: Correctly producing array literals for prepared statements
Next
From: Radosław Smogura
Date:
Subject: Re: Binary in/out for aclitem