Re: [sqlsmith] ERROR: badly formatted node string "RESTRICTINFO...
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andreas Seltenreich <seltenreich@gmx.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>, Robert Haas <robertmhaas@gmail.com>
Date: 2017-04-12T12:29:39Z
Lists: pgsql-hackers
Attachments
- push-parallel-safe-subplans-workers_v1.patch (application/octet-stream) patch v1
On Wed, Apr 12, 2017 at 12:40 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Amit Kapila <amit.kapila16@gmail.com> writes: > >> However, the worker will >> never execute such a plan as we don't generate a plan where unsafe >> sublan/initplan is referenced in the node passed to the worker. If we >> want to avoid passing parallel-unsafe subplans to workers, then I >> think we can maintain a list of parallel safe subplans along with >> subplans in PlannerGlobal and PlannedStmt or maybe keep a parallel >> safe flag in Plan so that we can pass only parallel safe plans to >> workers. > > Right, we could, say, leave a hole in the subplan list corresponding > to any subplan that's not parallel-safe. That seems like a good idea > anyway because right now there's clearly no cross-check preventing > a worker from trying to run such a subplan. > > Anyone want to draft a patch for this? > Please find patch attached based on above discussion. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com
Commits
-
Avoid transferring parallel-unsafe subplans to parallel workers.
- 16ebab68862b 10.0 landed
-
Mark finished Plan nodes with parallel_safe flags.
- 003d80f3dfad 10.0 landed
-
Simplify handling of remote-qual pass-forward in postgres_fdw.
- 88e902b769e1 10.0 landed
-
Handle restriction clause lists more uniformly in postgres_fdw.
- 28b047875554 10.0 landed
-
Allow parallel workers to execute subplans.
- 5e6d8d2bbbca 10.0 cited