Re: IMMUTABLE and PARALLEL SAFE function markings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: IMMUTABLE and PARALLEL SAFE function markings
Date
Msg-id 6394.1543293494@sss.pgh.pa.us
Whole thread Raw
In response to Re: IMMUTABLE and PARALLEL SAFE function markings  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: IMMUTABLE and PARALLEL SAFE function markings
Next
From: Justin Pryzby
Date:
Subject: Re: pg11.1 jit segv