postgres_fdw: Fix cache lookup failure while creating error context.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/expected/postgres_fdw.out | modified | +3 −0 |
| contrib/postgres_fdw/postgres_fdw.c | modified | +14 −3 |
| contrib/postgres_fdw/sql/postgres_fdw.sql | modified | +1 −0 |