pgsql: Fix thinko in ExecCleanupTupleRouting().

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Fix thinko in ExecCleanupTupleRouting().

Etsuro Fujita-3
Fix thinko in ExecCleanupTupleRouting().

Commit 3f2393edef changed ExecCleanupTupleRouting() so that it skipped
cleaning up subplan resultrels before calling EndForeignInsert(), but
that would cause an issue: when those resultrels were foreign tables,
the FDWs would fail to shut down.  Repair by skipping it after calling
EndForeignInsert() as before.

Author: Etsuro Fujita
Reviewed-by: David Rowley and Amit Langote
Discussion: https://postgr.es/m/5CAF3B8F.2090905@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3a45321a491711b556d2cf8f6904ab989b9d0b08

Modified Files
--------------
src/backend/executor/execPartition.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)