On Tue, 2008-02-26 at 00:17 -0800, Neil Conway wrote:
> You didn't comment on my proposed solution (FreeTupleDesc() iff refcount
> == -1).
Attached is a revised version of this patch. It makes the
FreeTupleDesc() change described above, and fixes a bug: in
SRF_RETURN_DONE(), we need to be sure to switch back to the caller's
context before deleting the multi_call_ctx, since some SRFs (e.g.
dblink) call SRF_RETURN_DONE() while still inside the multi_call_ctx.
I'd like to apply this change to back branches reasonably soon, so if
you have a better way to do the FreeTupleDesc() hack, let me know.
In response to
pgsql-patches by date
|Next:||From: Tom Lane||Date: 2008-02-26 20:12:58|
|Subject: Re: Bulk Insert tuning |
|Previous:||From: Gevik Babakhani||Date: 2008-02-26 19:09:37|
|Subject: Re: lc_time and localized dates |