Fix tuple printing in error message of tuple routing for partitions

Michael Paquier <michael@paquier.xyz>

Commit: 52635c276fe352276c157ccea36d7655729d328d
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-05-06T12:44:39Z
Releases: 11.3
Fix tuple printing in error message of tuple routing for partitions

With correctly crafted DDLs, this could lead to disclosure of arbitrary
backend memory a user may have no right to access.  This impacts only
REL_11_STABLE, as the issue has been introduced by 34295b8.

On HEAD, add regression tests to cover this issue in the future.

Author: Michael Paquier
Reviewed-by: Noah Misch
Security: CVE-2019-10129

Files