pgsql: Fix problems when a plain-inheritance parent table is excluded.

2023-10-24 Thread Tom Lane
Fix problems when a plain-inheritance parent table is excluded. When an UPDATE/DELETE/MERGE's target table is an old-style inheritance tree, it's possible for the parent to get excluded from the plan while some children are not. (I believe this is only possible if we can prove that a CHECK ... NO

pgsql: Fix problems when a plain-inheritance parent table is excluded.

2023-10-24 Thread Tom Lane
Fix problems when a plain-inheritance parent table is excluded. When an UPDATE/DELETE/MERGE's target table is an old-style inheritance tree, it's possible for the parent to get excluded from the plan while some children are not. (I believe this is only possible if we can prove that a CHECK ... NO

pgsql: Fix problems when a plain-inheritance parent table is excluded.

2023-10-24 Thread Tom Lane
Fix problems when a plain-inheritance parent table is excluded. When an UPDATE/DELETE/MERGE's target table is an old-style inheritance tree, it's possible for the parent to get excluded from the plan while some children are not. (I believe this is only possible if we can prove that a CHECK ... NO

pgsql: Fix problems when a plain-inheritance parent table is excluded.

2023-10-24 Thread Tom Lane
Fix problems when a plain-inheritance parent table is excluded. When an UPDATE/DELETE/MERGE's target table is an old-style inheritance tree, it's possible for the parent to get excluded from the plan while some children are not. (I believe this is only possible if we can prove that a CHECK ... NO