pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will

pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will

pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will

pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will

pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will

pgsql: Teach reparameterize_path() to handle AppendPaths.

2018-01-23 Thread Tom Lane
Teach reparameterize_path() to handle AppendPaths. If we're inside a lateral subquery, there may be no unparameterized paths for a particular child relation of an appendrel, in which case we *must* be able to create similarly-parameterized paths for each other child relation, else the planner will