Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Nov 26, 2018 at 11:21 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Alternatively, could we postpone the parallelism checks till after
>> function inlining? Do we even make any before that?
> ... I believe the parallel-safety checks are done very early, and if
> you decide that it's not safe to proceed with parallelism, you can't
> really change your mind later.
What do you consider "very early"? I do not offhand see a good reason
why we would need to know that before entering query_planner. Before
that, by definition, we have not made any paths.
regards, tom lane