Re: Size of Path nodes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Size of Path nodes
Дата
Msg-id 31816.1449336904@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Size of Path nodes  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: Size of Path nodes  (Robert Haas <robertmhaas@gmail.com>)
Re: Size of Path nodes  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Amit Kapila <amit.kapila16@gmail.com> writes:
> To add to whatever has been said above, intention of adding that flag
> was also to avoid adding new nodes for parallelism.  Basically modify
> the existing nodes (like SeqScan) to take care of whatever is needed
> for parallel execution.

TBH, I would say that that's a damn-fool idea.  I think you should instead
create a separate ParallelSeqScan path type and plan type, and the same
for every other thing that becomes parallel-aware.  The planner does not
normally[1] use the same path type to represent two fundamentally different
execution plans with enormously different cost estimates, but that is the
direction you want to push in for parallel query.  I think it will lead to
a mess: lots of unreadable code that has to do things in a way unlike the
code around it, and lots of bugs-of-omission in places that should have
distinguished seq and parallel cases but didn't.
        regards, tom lane

[1] Yes, I'm aware that UniquePath is an exception.  It has reasons to
live though, in particular that if it were multiple path types there would
still need to be places that understood the common property of those path
types all delivering unique results.  I do not see any corresponding
benefit of fuzzing the distinction between SeqScan and ParallelSeqScan.



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Size of Path nodes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Random crud left behind by aborted TAP tests