Tom, Ok, but how about reading from temporary tables? We could mark the function as "PARALLEL SAFE” instead of "PARALLEL RESTRICTED” in this case if it’s important. Actually, I rewrote the function without temp tables access but that’s not helpful - the function marked as "PARALLEL SAFE” is not parallel even without temp tables access.
— Best regards, Alexey Pechnikov > On 1 Dec 2020, at 21:58, Tom Lane <t...@sss.pgh.pa.us> wrote: > >> PARALLEL RESTRICTED