Re: Parallel safety for extern params
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Amit Kapila <amit.kapila16@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-03-21T16:21:13Z
Lists: pgsql-hackers
On Fri, Mar 21, 2025 at 11:52 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > I think this is completely wrong and should be reverted. There > cannot be a Param there, and if there were it would not represent > a reference to the Gather's child. > > I tried reverting this code change, and check-world still passes, > with or without debug_parallel_query = regress. So if there is > a case I'm missing, the regression tests don't expose it. Did you try the test case from the original post on this thread? I'm perfectly willing to believe that we messed up here -- this was 8 years ago and I don't remember the details -- but it surprises me a little bit that I would have committed that change without verifying that it was necessary to resolve the reported problem. However, I have made such mistakes before and will probably make them again, so it certainly could have happened. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Revert inappropriate weakening of an Assert in plpgsql.
- 16a3ae504e20 18.0 landed
-
Repair bogus handling of multi-assignment Params in upper plan levels.
- 0f7ec8d9c3ae 12.0 cited
-
Allow parallel query for prepared statements with generic plans.
- a87c0c7631d2 10.1 landed
- 682ce911f8f3 11.0 landed
-
Fix mistaken failure to allow parallelism in corner case.
- 036b6bd50365 9.6.6 landed
- 965a16fa9f8c 10.1 landed
- 639c1a6bb9ee 11.0 landed
-
Make simpler-simple-expressions code cope with a Gather plan.
- b73f1b5c29e0 11.0 cited