postgres_fdw: Fix cache lookup failure while creating error context.

Robert Haas <rhaas@postgresql.org>

Commit: 86437ddf8c8da6fff49bdf08a22af3460e078eeb
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-07-01T15:29:25Z
Releases: 9.6.0
postgres_fdw: Fix cache lookup failure while creating error context.

This is fallout from join pushdown; get_relid_attribute_name can't
handle an attribute number of 0, indicating a whole-row reference,
and shouldn't be called in that case.

Etsuro Fujita, reviewed by Ashutosh Bapat

Files