Simplify and encapsulate tuple routing support code.

Robert Haas <rhaas@postgresql.org>

Commit: cc6337d2fed598d4b5ac54d9a62708182b83a81e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-01-04T20:48:15Z
Releases: 11.0
Simplify and encapsulate tuple routing support code.

Instead of having ExecSetupPartitionTupleRouting return multiple out
parameters, have it return a pointer to a structure containing all of
those different things.  Also, provide and use a cleanup function,
ExecCleanupTupleRouting, instead of cleaning up all of the resources
allocated by ExecSetupPartitionTupleRouting individually.

Amit Khandekar, reviewed by Amit Langote, David Rowley, and me

Discussion: http://postgr.es/m/CAJ3gD9fWfxgKC+PfJZF3hkgAcNOy-LpfPxVYitDEXKHjeieWQQ@mail.gmail.com

Files

Discussion