Have you tried with JIT turned off in PG12? The long running nodeis ProjectSet type which is related to set returning functions. If that isgetting evaluated differently in PG12, that may be issue.