Re: Threaded Sorting - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Threaded Sorting
Date
Msg-id 6657.1033865311@sss.pgh.pa.us
Whole thread Raw
In response to Re: Threaded Sorting  ("Curtis Faith" <curtis@galtair.com>)
Responses Parallel Executors [was RE: Threaded Sorting]
List pgsql-hackers
"Curtis Faith" <curtis@galtair.com> writes:
> What about splitting out parsing, optimization and plan generation from
> execution and having a separate pool of exececutor processes.

> As an optimizer finished with a query plan it would initiate execution
> by grabbing an executor from a pool and passing it the plan.

So different executors would potentially handle the queries from a
single transaction?  How will you deal with pushing transaction-local
state from one to the other?

Even if you restrict it to switching at transaction boundaries, you
still have session-local state (at minimum user ID and SET settings)
to worry about.

Being able to apply multiple CPUs to a single query is attractive,
but I've not yet seen schemes for it that don't look like the extra
CPU power would be chewed up in overhead :-(.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: New lock types
Next
From: Hannu Krosing
Date:
Subject: Re: Proposed LogWriter Scheme, WAS: Potential Large