PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> I'm getting error:
> ERROR: subplan "SubPlan 1" was not initialized
> CONTEXT: parallel worker
Yeah, this is a known issue that we haven't yet fixed, cf [1].
I believe you should be able to work around it for now
by turning off enable_incremental_sort.
regards, tom lane
[1] https://www.postgresql.org/message-id/flat/622580997.37108180.1604080457319.JavaMail.zimbra%40siscobra.com.br