Support OID system column in postgres_fdw.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 26 Aug 2016 13:33:57 +0000 (16:33 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 26 Aug 2016 13:33:57 +0000 (16:33 +0300)
commitae025a15988f5491903cd3a2075f308c2773f711
treefb69002b57eb876b8690157eee1245996214a87b
parent2533ff0aa518d4d31391db279cf08e538fae5931
Support OID system column in postgres_fdw.

You can use ALTER FOREIGN TABLE SET WITH OIDS on a foreign table, but the
oid column read out as zeros, because the postgres_fdw didn't know about
it. Teach postgres_fdw how to fetch it.

Etsuro Fujita, with an additional test case by me.

Discussion: <56E90A76.5000503@lab.ntt.co.jp>
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/sql/postgres_fdw.sql