Re: TupleDescs and refcounts and such, again - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TupleDescs and refcounts and such, again
Date
Msg-id 25290.1167260707@sss.pgh.pa.us
Whole thread Raw
In response to Re: TupleDescs and refcounts and such, again  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: TupleDescs and refcounts and such, again
List pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Is it possible to allocate the subquery in a child context of the main
> query, so that it is technically a different context, yet can be freed
> simultaneously?

That's exactly what the code *was* doing, but the problem is that we'd
free the child context during ExecEndSubqueryScan, at which point the
tupdesc is still needed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: Load distributed checkpoint
Next
From: Tom Lane
Date:
Subject: Re: Per-database search_path