]> granicus.if.org Git - postgresql/commit
Fix thinko in ExecCleanupTupleRouting().
authorEtsuro Fujita <efujita@postgresql.org>
Mon, 15 Apr 2019 10:01:09 +0000 (19:01 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Mon, 15 Apr 2019 10:01:09 +0000 (19:01 +0900)
commit3a45321a491711b556d2cf8f6904ab989b9d0b08
tree9b7ee192ba793439dfa3d013d32d6c6f4f080e04
parentabb9c63b2c00109183cdb9f588d2f23fc383ed38
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@lab.ntt.co.jp
src/backend/executor/execPartition.c