Re: TupleDescs and refcounts and such, again

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: TupleDescs and refcounts and such, again
Дата
Msg-id 1167261163.3633.64.camel@silverbirch.site
обсуждение исходный текст
Ответ на Re: TupleDescs and refcounts and such, again  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: TupleDescs and refcounts and such, again  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2006-12-27 at 18:05 -0500, Tom Lane wrote:
> "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.

OK, I guess my only other question is to do with recursive/hierarchical
queries: How will we handle those? All in same context?

I guess many subqueries are transformable into main joins anyway, so the
distinction is probably moot anyhow.

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Per-database search_path
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_hba.conf hostname todo