]> granicus.if.org Git - postgresql/commit
postgres_fdw: Fix cache lookup failure while creating error context.
authorRobert Haas <rhaas@postgresql.org>
Fri, 1 Jul 2016 15:29:25 +0000 (11:29 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Jul 2016 15:29:25 +0000 (11:29 -0400)
commit86437ddf8c8da6fff49bdf08a22af3460e078eeb
treef2e6225d8c285761c16c4e6f0afa6ad4ef7bfdaa
parent5f3499b2b5455a2966faee30fd3f6d2776219858
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
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/sql/postgres_fdw.sql